Product category page, Add to Cart and Variants

  • Posts: 34
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
7 hours 59 minutes ago #369580

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox

I have price ranges (variants) for many products. How can the selection field for product variants and the "Add to Cart" button be also displayed directly on the product category page for such products with variants? Currently, users always have to click on the product with Variants first and select the Variant on the Productpage before they can add it to the cart. Surely there's a more user-friendly way to do this.

Thanks in Advance.

Last edit: 7 hours 48 minutes ago by spike252.

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

  • Posts: 34
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
5 hours 6 minutes ago #369590

I just discovered in the forum that this isn't possible, or only via the pop-up. That's a shame.

I've enabled the pop-up. However, the quantity selection field is laid out differently than on the product page. How can I make the quantity field look the same in the pop-up as it does on the product details page?

Attachments:

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

  • Posts: 84733
  • Thank you received: 13797
  • MODERATOR
3 hours 47 minutes ago #369582

Hi,

You can edit your menu item via the Joomla menu manager and under the "Products options" tab, you can set the "Popup mode" setting to "popup only" and then activate the "Add to cart" setting. This way, you'll get a "choose options" button on the listing. When the customer clicks on it, he will get a popup where he can select the variant before clicking on the add to cart button, all the while remaining on the listing page.

Regarding the quantity selection field, I checked your website and apparently the issue is with your Joomla template.
Your template's file are located in the folder templates/yootheme/
In a Joomla template, the main file is the index.php file in that folder which generates the layout for the pages.
Also, there is a component.php file next to it which is used to display the pages inside popups.
If I look at the CSS code applied on the quantity selection field on the normal product page, the CSS comes from the file templates/yootheme/css/theme.9.css of your template. But if I look at the CSS code applied on the quantity selection field in the popup, the CSS comes from the file /media/templates/site/cassiopeia/css/template.min.css
What this probably means is that your Joomla template is missing the component.php file in its folder. In that case, Joomla will default back to Cassiopeia's (Joomla's default template on the frontend) component.php file and that explains why the CSS code from the template is missing.
The solution is to add the missing component.php (or if it is present to fix its code) based on Cassiopeia's component.php file but add the template's CSS file to its header so that the CSS of the template can properly apply to popups.

Last edit: 2 hours 4 minutes ago by nicolas.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum