Skip to main content

view more options - add to cart button

More
13 years 9 months ago #81264 by melisari
I been working on this but i cant find the answer :(

My client want the button "view more options" in the product listing, but in some cases, where the product doesnt have options, the button turns to "add to cart".

Could be a way to have only the button "view more options"? This means that, in the cases where there is no more options, the button doesnt show.

My client would be willing to pay extra for this customization. Is very important for him.


Thank you so much in advance.

Sue.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #81323 by Xavier
Hi,

In HikaShop > Display > Content menu/module, you can edit the options of your menu/module displaying a product list.
In these options, you can find "Display 'Add to cart' button", disable it and the add to cart button will be no more displayed.
The following user(s) said Thank You: melisari

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #81331 by melisari
Thank you! I will do it and i will be back :)

Is there a way to keep the "more options" button simpler, i mean, without the design of the "add to cart". My client want it like just the word "more options", but i dont know where i can control that (i guess is in the css)

Thank you so much for your patient and excelent support :D

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #81332 by melisari
Oh, im sorry, i went to the menu module options, as you said, and disabled the button, but when i do that, the "view more options" button dissapear too.

My client needs that the "view more options" button stay, but the "add to cart button" dissappear. Of course, the "view more options" button will only display when the product has variants.

I understand that maybe this customization would need some php extra code. As i said before, my client will pay any extra cost that could be needed.

Thank you!

Sue.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #81523 by Jerome
Hi,

You have to edit the view "product | quantity".
At the beginning of the file you would see the line
Code:
if(!empty($this->row->has_options)) { echo // .... } else {
By replacing "} else {" by "} {" it should fix your problem.
If you want more specific customization, you could use our "commercial jobs" section.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: melisari

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #81795 by melisari
:( Didnt work,

With the change, both "add to cart" and "more options" buttons appear :(

I just want the "more options"

Im sorry to bother so much :( Hope you can help me,

Hugs!

Sue.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #81806 by Xavier
Hi,

It require a little bit more modification. To customize that, you have to check in the view "product / quantity" if we are in a listing, because this same view is used for the product page.
We can't provide this kind of customizations on the forum, thanks to ask to a third developer or post a request in the commercial section.

Regards.

Please Log in or Create an account to join the conversation.

Time to create page: 0.215 seconds
Powered by Kunena Forum