News:

Looking for documentation? Take a look on our wiki

Main Menu

Latest Products and Custom Fields

Started by favdes, October 06, 2016, 10:56:48 AM

Previous topic - Next topic

favdes

Hello everyone,

I was wondering if someone might be able to help me with this one.

We are almost ready to launch a new VM site but there are a couple of minor adjustments that we'd like to make before we do.

One of them is the 'Latest Products' module which is shown on the home page of the new site (see attached).

As you'll see, where an item has 'Custom Fields', a drop-down box is shown allowing people to customise the product. Instead of the drop-down box, we would like a 'More Information' button to appear, linking to the product information page.

Products without 'Custom Fields' have an 'Add to Basket' button and we'd like to keep this how it is.

Is this possible?

Many thanks



James

GJC Web Design

it is -- u need to over ride the sublayout products.php but clone it and rename and call it just for that module
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

favdes

Excellent!

Now, how can I do all of that?    :0)

GJC Web Design

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

jenkinhill

A complication is that you appear to be using a commercial template so are likely to already have sublayout overrides. - in templates/[YourJoomlaTemplate]/html/com_virtuemart/sublayouts/

If you just wanted to remove the custom field selector then you could do that with css - the image and title will already link to the product details pages (assuming your template follows VM3 convention).
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

favdes

Great stuff, thank you guys.

We've managed to make the changed based on your advice. Thanks again!