![]() |
Cart template
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 |
Re: Cart template
your quotations are off...it should be
<img src="{$xcart_web_dir}/image.php?productid={$products[product].productid}" /> |
Re: Cart template
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 |
Re: Cart template
Code:
<img src="{$xcart_web_dir}/image.php?id={$products[product].productid}&type=P" /> |
Re: Cart template
That line didn't work either. Should there be a type= before the &type variable or something?
|
Re: Cart template
The code you posted will only work after this line in the template:
Code:
{section name=product loop=$products} Are you adding the <img> HTML above this line? |
Re: Cart template
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 |
Re: Cart template
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:
<a href="home.php?cat={$link_catid}>LINK OR IMG HERE </a> |
Re: Cart template
Thanks Bill. It worked a treat.
Regards, Kylie |
All times are GMT -8. The time now is 09:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.