News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Front page featured products not showing "add to cart" button

Started by micropalla, July 28, 2022, 08:50:52 AM

Previous topic - Next topic

micropalla

Hello.
I have Joomla 4.1.5 and VM 4.0.6.

I have 5 items featured. I created a module to show featured items. Then I created an article to load the module in with loadmodule and i put it in the frontpage.

All is ok, the items are visible but it is not possible to add them to cart.
In the VM products module both options are on "yes", I mean "Show price" and "Show add to cart link".
I tested it with several templates but it is always not visible.

Can you help me?
Thank you!

Jumbo!

It looks like an issue with your template. Switch to some other template and check how it works.

micropalla

No, as I said, I tested it with several templates and notingh changed.
I attach the image of the Cassiopeia template.

Jumbo!

The screenshot you posted does not belong to the standard VirtueMart layouts, and you must be using a 3rd party extension overriding the default layouts of VirtueMart. It would be best if you disabled the same.


micropalla

I have tried with lot of templates, nothing changes.
I also tried to disable prices and it worsk.
I think the "Add to cart" button missing is a bug of VM.

pinochico

The fault may lie elsewhere :)

Don't try other templates, but try the basic Cassiopeia template and place the module in the module position and not in the article.
Does it work?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

micropalla

Good test.
Unfortunately for me it works.
So which is the problem?
The template?

Thank you very much!

pinochico

2 option:
- you add module to article (why?), but you don't setup VM for using in content
- if first option not function(setup use VM in content), then is bug and you have to waiting for next next version :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

micropalla

I added the module to tha article to show on frontpage only the featured items.
Is there a better way to do this?
Thank you for your help!!

GJC Web Design

why can't u just show the module in a module position and enable for home page only?

if this is a problem ( showing on other pages without an Itemid) then try the advanced module extension or add a position in your template controlled by something like ( there's probably a home var already in the template somewhere)

$app = JFactory::getApplication();
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) {
   // front page module pos
}

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation