
Originally Posted by
pattie1970
Okay, we have an online store and a brick and mortar store. Some items are sold only in our brick and mortar store because the size/ weight makes it hard to ship them. I still want to show them on our website and currently have them set up as "Call for Price" even though I do show the price. This just helps so they can't add them to their shopping cart.
BUT, I would prefer to change the wording to say "In Store Only" and cancel the link on the button that would take them to the Contact Us page.
I am new to Zen but have been working with OSC for a while. I just want to make sure I get all the files needed to change the info. I used the developers toolkit in the admin section and got back 38 lines needing to be changed but thought I would ask here in case anyone has done this or tried to do this before??
Just don't want to mess anything up since my mind in on OSC but Zen is very different. Thanks!
In case this helps out the next person... I didn't do any php changes. BUT, I did comment out this part of includes/functions/functions_general.php
FIND:
PHP Code:
$button_check = $db->Execute("select product_is_call, products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
switch (true) {
// cannot be added to the cart
case (zen_get_products_allow_add_to_cart($product_id) == 'N'):
return $additional_link;
break;
case ($button_check->fields['product_is_call'] == '1'):
$return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';
break;
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;
default:
$return_button = $link;
break;
}
Change to:
PHP Code:
$button_check = $db->Execute("select product_is_call, products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
switch (true) {
// cannot be added to the cart
case (zen_get_products_allow_add_to_cart($product_id) == 'N'):
return $additional_link;
break;
case ($button_check->fields['product_is_call'] == '1'):
//$return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';//
break;
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;
default:
$return_button = $link;
break;
}
Basically all I did was comment out the return button which had the link to the contact us page. I also replaced the Call for Price button under includes/templates/templates_default/images/call_for_price.jpg
You can see what I did in my category In Store Only Items at http://www.americasthrift.com
Although, on a side note- please don't comment on our bare look... all the background work has to be done first before I improve the cosmetics of the site (ha, ha)
Thanks!