| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
getting the product image location | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have been drafted by my wife to work on her website so I am new to Smarty and X-Cart but not programing so please bare with me.
I need to locate the product image location in the template skin/customer/main/product.tpl I see what looks like an object called $product but I have no idea what the fields are of the object or how to dump them. I turned on debug and that was of little value to me so any help would be really handy at this point.
__________________
Version 4.1.8 X-SpecialOffers X-AOM |
|||||||
#2
|
|||||||
|
|||||||
![]() Images are stored in the images/ directory - each different type is stored in a different folder T for thumbnails, P for product images, etc. What exactly are you looking to do?
This is the call in product.tpl: {if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'} {include file="modules/Detailed_Product_Images/popup_image.tpl"} {elseif $product.force_image_type eq 'W' && $product.variantid} {include file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"} {else} {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"} {/if} {if $active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'} {include file="modules/Magnifier/popup_magnifier.tpl"} {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Turn on the debug console and make sure you check the box to show the variables - it is in admin settings as well. Then you can see all variables and their values for a page in the debug console
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
![]() Quote:
I pulled the description by using this {$product.descr} and I was really hoping that I could get the the image with something like {$product.image} but so far no joy. If I could just see what is in $product it might help but I can not find any real documetion on what that variable contains.
__________________
Version 4.1.8 X-SpecialOffers X-AOM |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
__________________
Version 4.1.8 X-SpecialOffers X-AOM |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Oh your version is 4.1.8, this is not available there, sorry.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||||
|
|||||||||
![]()
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#8
|
|||||||
|
|||||||
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Note: Built-in Pinterest support introduced in 4.5.0
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|