How to place a 'sold' image/text on a sold product
Hi,
I am working on a virtual poster shop, and I would like to mark some products as 'sold', because I would still like people to see some of the products that have been sold. Maybe someone know how to help me with this? Thanks, Guy (NL) |
I'm still fairly new to x-cart, but I would imagine that if you simply edited the picture in a graphics editor to have a "sold" stamp on it, you would upload that to replace your existing thumbnail. That seems like it would be the easiest way since you're not going to be romoving it from sold status.
|
thanks for the tip!
I did that, and edited the description too! Now the only thing i can't figure out is how to take away the 'put in basket' link.
But thanks! Cheers, Guy |
set its quantity to 0 and add to cart should dissapear
|
hmmmm... that is not happening...
I've done it, but the add to cart is still visible ;-(
Any other suggestion? |
Maybe try something like:
|
So you want the product to still show but to not have an add-to-cart button?
Like this? http://www.mobile-audio.net/store/customer/product.php?productid=17701&cat=555&page=1 |
Jeanie, I think you've hit...
.. the nail with the hammer ;-) Or is that not how you say it in english?
But yes, that's it... that's what I would like. Only instead of 'out of stock' it would put: 'item sold'. It's for the following site, by the way: www.postersaffiches.com If you can help me, I would be very thankful. Thanks, Guy |
Before you do any changes please be sure to backup the files to be changed.
customer/main/product.tpl Look for this and be careful because there are a couple of lines that are similar: Code:
{if $config.General.show_in_stock eq "Y" and $product.distribution eq ""} Replace it with this: Code:
{if $config.General.show_in_stock eq "Y" and ($product.avail le 0 or $product.avail lt $product.min_amount)} Under General Configuration CHECK the box that says "show quantity in stock". Seems backwards but that's what I had to do. Maybe try it without checking this box and see what happens. I've messed around with this cart so much my change log is getting overbearing. Then I removed the Quantity label and area that showed the amount in stock that appeared just below the description. Also in customer/main/product.tpl: Code:
{if $config.General.show_in_stock eq "Y" and $product.distribution eq ""} You can change the wording to 'item sold' by changing the lng.txt_out_of_stock in the Languages area. This solution worked for me in both 3.1.1 and 3.3.1 |
i'm going to try it!
Will let you know!
Thanks a bunch! Cheers, Guy |
All times are GMT -8. The time now is 11:06 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.