Author Topic: Front page featured products not showing "add to cart" button  (Read 581 times)

micropalla

  • Jr. Member
  • **
  • Posts: 102
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!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 851
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always the latest
Re: Front page featured products not showing "add to cart" button
« Reply #1 on: July 28, 2022, 21:23:35 pm »
It looks like an issue with your template. Switch to some other template and check how it works.

micropalla

  • Jr. Member
  • **
  • Posts: 102
Re: Front page featured products not showing "add to cart" button
« Reply #2 on: July 29, 2022, 09:00:28 am »
No, as I said, I tested it with several templates and notingh changed.
I attach the image of the Cassiopeia template.

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 851
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always the latest
Re: Front page featured products not showing "add to cart" button
« Reply #3 on: July 29, 2022, 13:11:50 pm »
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

  • Jr. Member
  • **
  • Posts: 102
Re: Front page featured products not showing "add to cart" button
« Reply #4 on: July 29, 2022, 21:22:04 pm »
Please, how do I do this?

micropalla

  • Jr. Member
  • **
  • Posts: 102
Re: Front page featured products not showing "add to cart" button
« Reply #5 on: July 30, 2022, 16:55:04 pm »
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1542
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Front page featured products not showing "add to cart" button
« Reply #6 on: July 30, 2022, 17:00:35 pm »
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

  • Jr. Member
  • **
  • Posts: 102
Re: Front page featured products not showing "add to cart" button
« Reply #7 on: July 30, 2022, 22:52:20 pm »
Good test.
Unfortunately for me it works.
So which is the problem?
The template?

Thank you very much!

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1542
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Front page featured products not showing "add to cart" button
« Reply #8 on: July 31, 2022, 20:23:05 pm »
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

  • Jr. Member
  • **
  • Posts: 102
Re: Front page featured products not showing "add to cart" button
« Reply #9 on: August 03, 2022, 15:40:44 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10580
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Front page featured products not showing "add to cart" button
« Reply #10 on: August 03, 2022, 16:07:48 pm »
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
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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