Forums / Setting Up Categories, Products, Attributes / Product Listing Download add to cart button

Product Listing Download add to cart button

Started by athena on 3 Sep 2011, 2:01 PM · Views: 673

Results 1 to 8 of 8
3 Sep 2011, 2:01 PM
#1
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Product Listing Download add to cart button

1.3.9h I'm wondering if this post by DrByte from 2009 is still relevant and will give me the results I'm looking for.

I've set up many carts but this is my first with download products and I've tried for weeks now to get a configuration that will allow the customer to add a selection of download products to their cart from the Product Listing page.

My current attempt has the album as a category and each tracks as a product with one pre-selected attribute radio button.

this post by DrByte requires lots of edits and it is a closed 09 thread.

The example someone posted does not really do what I want but keeps requiring the customer to return to the product listing page.

So can adding several download products to the cart on one click be done in 1.3.9h?

http://www.zen-cart.com/forum/showthread.php?t=142161

Thanks for any insight.

3 Sep 2011, 3:12 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product Listing Download add to cart button

The post by DrByte requires four edits, which are explained pretty clearly. I'm not sure if there would be any problem with those edits in 1.3.9h, but if I wanted that functionality, I would create a test Zencart installation, make the edits and check things out.

There's no other mod I'm aware of that does that.

Does seem like it would be a handy mod for download-only sites.

3 Sep 2011, 3:32 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Product Listing Download add to cart button

It can be adapted for 1.3.9 by making similar edits. I've not compared the code with 1.3.9, but I don't think a direct copy+paste will work seamlessly without breaking new things added in 1.3.9. YMMV

As with all upgrades, concepts are essentially universal. Their implementation may have to be altered slightly to suit the new version.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Sep 2011, 3:43 PM
#4
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Product Listing Download add to cart button

Thanks for such a quick reply, DrByte. Say..thanks so much for zencart...you are our hero...

It may be beyond me to do this but I may continue to fiddle with it. I'll post any success.

Do you think this functionality will be a part of future releases?

3 Sep 2011, 4:01 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Product Listing Download add to cart button

It's already built into the 2.0 specifications. But to apply it to v1.3.9 or 1.5.0, you'll need to make the edits manually yourself.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Sep 2011, 4:12 PM
#6
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Product Listing Download add to cart button

That's great. I guess I could wait but I just went through the files from 1.3.9h mentioned in the old post comparing to zencart 1.3.8a and it appears that the code in the sections that require edits are exactly the same.

I'll try and see what happens.

3 Sep 2011, 4:18 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Product Listing Download add to cart button

Correct.

I've just checked:
The edits are safe to apply to original core files of v1.3.9; just use care since the line numbers have changed in several cases.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Sep 2011, 4:31 PM
#8
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Product Listing Download add to cart button

SUCCESS!!! A little dicey...but not too....WinMerge was invaluable.

Now, just FYI I have a clean install of 1.3.9h and no mods added. As far as I know there are no ill effects. I did change the button name to "Add To Cart" and the return to shopping function takes me back to the Product Listing page to grab more tracks. Excellent!

Thank you again.