Zen Cart Logo
Forums / General Questions / download button not appearing, after customizing attribute/add-to-cart process

download button not appearing, after customizing attribute/add-to-cart process

Locked

Views: 1,260

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
3 Apr 2008, 11:25 AM
#1
musictrax avatar

musictrax

New Zenner

Join Date:
Apr 2008
Location:
tokyo
Posts:
1
Plugin Contributions:
0

download button not appearing, after customizing attribute/add-to-cart process

Hi,

Problem is: Download button not appearing on the customers orders.
Started happening: After changing the template to allow multiple products to be added from a single page.

Notes:

  • Instead of the product being the album and the songs being the attributes, each track is a product which has a single mp3 download as the only attribute.

The problem: When products are added to the cart they appear and can be purchased, but the download button never appears.

Actions taken to fix(after reading the forums): Turned on 'Default Attribute to be Marked Selected:' to 'Yes'. (Directly in the database with the SQL)

update`products_attributes` 
set `attributes_default` =1
WHERE `attributes_default`=0

Result: I had hoped this would have automatically assigned the downloadable files to the products in the cart but it didnt seam to have an effect.

a product to see this in action can be found here:
http://musictrax.jp/index.php?main_page=product_music_info&products_id=2982

The payment method 'check/money order' is set to go directly to the 'delivered' state which should result in the customer getting their song.

Im at a loss as to how to get it to go. If anybody has any thoughts or suggestions they would be appreciated.

The downloads were working a while back and now they are not working. I believe that the multiple downloads feature that i added is the cause but i dont know for sure.

3 Apr 2008, 3:39 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: download button not appearing, after customizing attribute/add-to-cart process

musictrax:

Problem is: Download button not appearing on the customers orders.
Started happening: After changing the template to allow multiple products to be added from a single page.

Notes:

  • Instead of the product being the album and the songs being the attributes, each track is a product which has a single mp3 download as the only attribute.

The problem: When products are added to the cart they appear and can be purchased, but the download button never appears.

...

I believe that the multiple downloads feature that i added is the cause but i dont know for sure.

Yes, it's directly related to your change.
When you add an item to the cart, you MUST ALSO add the attribute to that item. If the attribute is not included, then there will be no download file linked to the product.
You'll need to rework your code so that every product you add to the cart gets the correct download-file attribute tied to that product.
Keep in mind that every separate file is a different download ... but, your customization doesn't take the actual attribute into account. Instead, you're not only displaying an attribute that you never add to your products, your attribute is actually never even tied to a file; instead it's specifying a download/media format.
So, you have several fundamental flaws in your customized approach.