| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Cart template | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
Hi,
I am interested in removing my dialog look in this template and I started off making a simple change. I want to display a product image (not the thumbnail size image) at the top of the page and I used the following syntax:- <img src="{$xcart_web_dir}/image.php?productid="{$products[product].productid} /> This didn't work. Can someone tell me what I should have used? Many thanks, Kylie
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox) PHP 4.4.4 SQL 4.1.21 Linux O/S |
|||||||||
|
#2
|
|||||||
|
|||||||
|
your quotations are off...it should be
<img src="{$xcart_web_dir}/image.php?productid={$products[product].productid}" /> |
|||||||
|
#3
|
|||||||||
|
|||||||||
|
I copied the line you typed and I get a no image available displayed. I checked the product and I have both a thumbnail and an image for the product.
Any ideas what could be wrong? Regards, Kylie
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox) PHP 4.4.4 SQL 4.1.21 Linux O/S |
|||||||||
|
#4
|
|||||||
|
|||||||
|
Code:
__________________
xcartmods.co.uk |
|||||||
|
#5
|
|||||||||
|
|||||||||
|
That line didn't work either. Should there be a type= before the &type variable or something?
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox) PHP 4.4.4 SQL 4.1.21 Linux O/S |
|||||||||
|
#6
|
|||||||||
|
|||||||||
|
The code you posted will only work after this line in the template:
Code:
Are you adding the <img> HTML above this line? |
|||||||||
|
#7
|
|||||||||
|
|||||||||
|
Great stuff Bill. I unfortunately had my code above the section tag. I am still getting my feet wet with all of this stuff. I put a section tag around my code and it worked.
Just one other question if I can, if I have my own continue shopping image and I want the customer to be redirected back to the category they selected, how would I code it? I noticed when the current continue shopping gets clicked on, the customer gets sent back to the home page. Thanks, Kylie
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox) PHP 4.4.4 SQL 4.1.21 Linux O/S |
|||||||||
|
#8
|
|||||||||
|
|||||||||
|
Quote:
Add this to the cart.php page near the top after a group of about ten items that all start with x_session_register... PHP Code:
Then you can use this link anywhere in the cart.tpl to go back to the previous category: Code:
|
|||||||||
|
#9
|
|||||||||
|
|||||||||
|
Thanks Bill. It worked a treat.
Regards, Kylie
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox) PHP 4.4.4 SQL 4.1.21 Linux O/S |
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||