Zen Cart Logo

Product Details php file

Views: 2,904

Results 1 to 6 of 6
22 Sep 2012, 9:19 AM
#1
markosiroki avatar

markosiroki

New Zenner

Join Date:
Jun 2012
Location:
LJubljana
Posts:
14
Plugin Contributions:
0

Product Details php file

Dear Sirs and Madams!

In our test webshop, I select some product and I get product details for selected item. Now, for every attribute the image shows, which is all ok. But, I have to make some cosmetic and logic modifications and my question is, which php file is responsible for showing product details. This is a file that I have to modify.

Sincerely,
Marko

22 Sep 2012, 9:45 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Product Details php file

You are most likely looking for tpl_product_info_display.php but the actual wording on the page comes from your database. What is it you want to do?

22 Sep 2012, 1:01 PM
#3
markosiroki avatar

markosiroki

New Zenner

Join Date:
Jun 2012
Location:
LJubljana
Posts:
14
Plugin Contributions:
0

Re: Product Details php file

Thanks for your reply, the file is right! I've removed some functionality, but now I have challenging issue: Let's say, I (as customer) click on product, that can be shipped ni 1L bottle, 4L bottle, 100L barrel and 200L barrel. These are all attribute values for product attribute named (for example) Packaging. So:
Product A has attribute named Packaging with values 1L, 4L, 100L, 200L. The attribute is set as Combobox, so the customer can click on wished packaging. Now, how do I add action handling for this attribute combobox? If customer, for instance, selects 100L packaging, I would like to show 100L barrel instead of main product picture with recalculated final price. Where do add action handling?

Sincerely,
Marko

22 Sep 2012, 1:45 PM
#5
markosiroki avatar

markosiroki

New Zenner

Join Date:
Jun 2012
Location:
LJubljana
Posts:
14
Plugin Contributions:
0

Re: Product Details php file

Thanks for links, but I have to do it myself. In php file, I found section that fills combobox with attribute values, but where do I add "onchange" modifier to combobox? In which file?

22 Sep 2012, 4:33 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Details php file

Since the Dynamic Price Updater does at least some of what you want, I suggest you look at how that works for the onchange handling. Ditto for the Attribute Image mod.