Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Turning the Sold Out image into a link

Locked

Started by lisk on 15 Aug 2006, 7:10 AM · Views: 951

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Aug 2006, 7:10 AM
#1
lisk avatar

lisk

Zen Follower

Join Date:
Jun 2006
Posts:
118
Plugin Contributions:
0

Post #1 by lisk

Hi - I was wondering if it is possible to turn the sold out button (which I have changed to something else on my site) into an image link. I suspect this question will make more sense if you can see what I'm trying to do, so here's an example. I would like a customer to be able to click on the "available now" image and be taken to the same url as the product url (which is the "available now" text link at the bottom of the product description. Is this possible?

Thanks!
-Lis

18 Aug 2006, 7:46 AM
#2
lisk avatar

lisk

Zen Follower

Join Date:
Jun 2006
Posts:
118
Plugin Contributions:
0

Post #2 by lisk

Anyone? :down:

18 Aug 2006, 8:03 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

You could play with this code in functions_general.php:```php
case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
if ($_GET['main_page'] == zen_get_info_page($product_id)) {
$return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
} else {
$return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
}
break;

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.