Record Label - CD and Downloadable content

  • Posts: 14
  • Thank you received: 0
11 years 11 months ago #82564

Hi,

I am setting up a record label website and wish to sell albums as downloadable content or CDs. I have the business package.

What I need is one product with options for download (cheaper price) or CD (normal price)

How is it best to set this up? Is it using options or characteristics? I can't get it to work the way I was hoping

Thanks,

Paul

Last edit: 11 years 11 months ago by paullong.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82602

Hi,

To do that you have to create an option, the option could simply be CDs (yes or no) and the option has a price.

The following user(s) said Thank You: paullong

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 11 months ago #82609

Thanks for the quick response.

That's not quite what we need. The problem with that is people will probably just hit the "add to cart" button from main product listing page without seeing there are options.

Can the options be displayed on the product listing page? Or can the user be forced into choosing an option every time a product is added to the cart?

Many thanks,

Paul

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82633

I think that in your case the best way is the characteristics, set a different price on each vairant, add a file on the variant "download" only.
In the listing the 'add to cart' button will not be displayed, but "Choose option" will be displayed, so the customer must go in the product page, and there they will see the variants.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 11 months ago #82775

Thank you!

Hopefully this will be the last question. Our shop goes straight to Paypal (there's no shop login etc) so the shop doesn't collect a user's details. This is fine for physical transactions as Paypal sends a confirmation email and lets us know the address to post things to.

However, if we are to provide downloadable content, hikashop currently does not have the user's email address, so cannot send the download link on successful purchase.

Can Hikashop get the email detail from Paypal on successful purchase? Or can I get the user to enter their email address only at checkout without them having to register etc?

Thanks,

Paul

Last edit: 11 years 11 months ago by paullong.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82812

Hi,

A solution could be to add a custom field in the checkout, in HikaShop > Display > Custom fields, create a field in the table "order" set it as required, by this way the customers will enter their email.
Then you will have to edit the class "order" (administrator/components/com_hikashop/classes/order.php) to change the email address for the send_mail in the save() function.

The following user(s) said Thank You: paullong

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 11 months ago #83042

Hello,

I'm struggling a little. I've got the email address in the table "order", called "emailaddress". I've edited administrator/components/com_hikashop/classes/order.php lines 257-264 as follows:
if(!empty($emails)) {
$mail = hikashop_get('class.mail');
if(!empty($order->customer)) {
$user_email = $order->emailaddress;
$user_name = $order->emailaddress;
}
/* $order->customer->user_email = explode(',',$emails); */
$order->customer->name= ' ';

But it's not happening. Can you please help? The access I provided earlier should still work, if you need it.

All help appreciated. Thanks,

Paul

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #83075

Hi,

You should try to remove the "if(!empty($emails))" condition, because I think that in your case the var $emails is empty so the following lines are not executed.
Try to add some "echo 'there ?';" to see if you execute the code.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 11 months ago #83134

Thanks,

Where exactly is the section which sends the email with the download link in it? I don't think it's the bit i was looking at.

Paul

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #83270

Hi,

HikaShop have specific files in the media folder for the emails content.
With commercial versions of HikaShop you can see and edit the email content directly in the backend. With the starter version you should edit the file manually (you would find some threads which talk about the email override).

Download links are displayed in the email.
The order class just call the email class and load the email content before sending it.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 11 months ago #83278

Thanks Jerome,

Unfortunately that doesn't help. I need to edit the piece of code which sends the email with the download link in it, so it sends to a custom field I've created. I need to know where that piece of code is.

I do have a commercial version of Hikashop.

Many thanks,

Paul

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #83282

Hi,

So you would find this part of code in the emails (creation of status notification).

$statusDownload = explode(',',$config->get('order_status_for_download','confirmed,shipped'));
if(in_array($data->order_status,$statusDownload)){
	if(!empty($item->files)){
		global $Itemid;
		$url_itemid = '';
		if(!empty($Itemid)){
			$url_itemid='&Itemid='.$Itemid;
		}
		echo '<p>';
		foreach($item->files as $file){
			$fileName = empty($file->file_name) ? $file->file_path : $file->file_name;

			echo '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$url_itemid).'">'.$fileName.'</a><br/>';
		}
		echo '</p>';
	}
} ?>
This part of code display the download links in the emails.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 10 months ago #83596

Thanks Jerome. Where is this code? What file?

:)

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 10 months ago #83698

Hi,

In the HikaShop emails.
With HikaShop business, you have a menu "System > Email" (with the configuration and the payment methods).
This view would allow you to edit the email and in the emails "Order creation notification" and "Order status notification", like I just said before, you would find the code that I copy/paste.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 10 months ago #83771

Hi Jerome,

Thanks for this. Unfortunately, my client has decided to go to another provider so please close this call.

Paul

Last edit: 11 years 10 months ago by paullong. Reason: I've lost the work

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum