Go to Cart Button

  • Posts: 9
  • Thank you received: 0
6 years 4 months ago #300829

-- url of the page with the problem -- : www.theassayhouse.com
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.3
-- PHP version -- : 7
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : None

My preferred set up is to have a couple of sections on the front page as 'featured items' and 'recent items'. These have been set up using HikaShop Content Module and set on the page using position in the template. So far, so good. The product image and some basic info then appear as a set of boxes. Each product is linked to its own specific product page. The product page has a 'add to cart button'. However the small preview box also has the same text. I would like to change this to something like 'more info'. Otherwise the customer has to click 'add to cart' twice, and this is confusing because the first click just takes the customer to the product detail box not the shopping cart

. I have tried to use text override, but this changes the text on both buttons. Is there a way of changing the text on one button (product preview box) and not the other (product detail page)? Many thanks. Matt

Attachments:

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
6 years 4 months ago #300842

Hello,

You are close to the solution, let's precise the idea, you have to select a better selector, see my screenshot to understand me well :



As you can see on my screenshot at a higher level, you will find an id, an id is always unique (or at least have to be unique on each page), and so you can use it to achieved what you need, here "div_hikashop_category_information_module_95_21", and to be sure to restrict this css command you can add higher container id (like module id or page id).

You will have something like this :
#page_id #div_hikashop_category_information_module_95_21 {
/* Your specific command */
=> erased current text
=> use a "content" command to add your new text

}


Hope this will help you to achieved what you need.
Regards

Last edit: 6 years 4 months ago by Philip.

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

  • Posts: 9
  • Thank you received: 0
6 years 4 months ago #300885

Hi
Thanks for this. But could you please give me a bit more detail. Where do I need to make these changes?
I have found the code for the category_information_module but not sure which areas to change or where any new css should be overwritten.
Thanks
Matt

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
6 years 4 months ago #300895

Hello,

You will find answer in this tutorial, I recommend this tutorial to see how to proceed, and add the line at the end of your Frontend css file, and not overwrite any command that will be more simple.

Regards

Last edit: 6 years 4 months ago by Philip.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum