Re: Changing the Add to cart button
I will have to install a fresh cart and try. If I use the one line you gave I get words on the page, If I use the entire add to cart code and replace the line I get the cart button with or without attributes.
I must have changed it somehow while customizing the cart, it has lots of modifications. I can't switch to default because it wants files for PWAS that are not installed on template default.
I appreciate your trying to help.
Thanks
Re: Changing the Add to cart button
Quote:
Originally Posted by
Ajeh
To make the Add to Cart code not show when there are attributes, take out that code and change the one line:
Code:
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
to read:
Code:
if (zen_has_product_attributes($_GET['products_id']) || CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
and the Add to Cart button will not show ...
Thanks for steering me in the right direction. I actually had to change your replacement code to
Code:
if ((zen_has_product_attributes($_GET['products_id'])) || (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '')) {
It needed the brackets separating the conditions to get it to work.
Re: Changing the Add to cart button
Good catch ... thanks for the update that you have this working now ... :smile:
Re: Changing the Add to cart button
I get the same as rtyfugkj, and have done on some other occasions, despite seeming to have a User Name (which is auto entered, my familiar and usual username) and a Password. I'll try re-registering, but my impression is that there is some problem with the discussion boards' access. Still love the whole Zen cart thing though :smile:
Re: Changing the Add to cart button
Quote:
Originally Posted by
member
Thanks for steering me in the right direction. I actually had to change your replacement code to
Code:
if ((zen_has_product_attributes($_GET['products_id'])) || (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '')) {
It needed the brackets separating the conditions to get it to work.
Hmm. I tried this on a nifty zen template and it actually produced the opposite result. i.e. I get 2 add to cart boxes with no attributes and the lower one disappears with attributes.
Re: Changing the Add to cart button
Quote:
Originally Posted by
Ajeh
To make the Add to Cart code not show when there are attributes, take out that code and change the one line:
Code:
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
to read:
Code:
if (zen_has_product_attributes($_GET['products_id']) || CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
and the Add to Cart button will not show ...
I re-quoted the originally posted code and message for clarity. In order to NOT display one of the two buttons in the absence of attributes (which I think was the gist of the original request) I believe the NOT operator is required like so:
Code:
if (!(zen_has_product_attributes($_GET['products_id'])) || CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
Re: Changing the Add to cart button
im not sure if this is the right place to post but i couldn t find anything to help..
on my site the add to cart button is a icon and i want it to be a button, like a css button .. how do i change it ?