Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - SportMart (SKU# FLEX-00019)

TOPIC: Products on homepage

Products on homepage 7 years 10 months ago #14292

Hi,

You have on your template demo products on homepage with slider (see first attachment). But in our case it looks different (see second attachment). How we can make it look like in the demo?
Also all products on homepage have discount sticker, no matter have this product discount or not. On category and product page all stickers works fine. How we can fix this issue?
And one more little question: how to change sticker on discounted products Х% OFF to - X% (see third attachment) ?
Attachments:
The administrator has disabled public write access.

Products on homepage 7 years 10 months ago #14297

Hi,

1- To have the same "Slider" that we have on the homepage of SportMart Live Demo; use this module: "VirtueMart Products" (that is the official Virtuemart Product module that comes with Virtuemart AIO component)

don't make the VM - Frontpage as your Joomla homepage; instead use a blank article for the Joomla Homepage, then publish "VM Products" module on homepage (you can publish multiple VM Product modules, just like we did. I.e: "Best Seller" & "Latest Products" modules)

2- Apparently "hide/show SALE badge" is broken on VM - Frontpage (ROOT/index.php?option=com_virtuemart), to fix this problem; open this PHP file:
/templates/flexible_sportmart/html/com_virtuemart/virtuemart/default_products.php

find these lines:
$DiscountTEXT = $this->currency->createPriceDiv('discountAmount',0,$product->prices);	
if (preg_match("/none/i", $DiscountTEXT)) {
    $DiscountORnot = "";
    } else {
     if (!(empty($DiscountTEXT))) {
       $DiscountORnot = "FlexibleDiscount";
      }
}

and replace them with these:
$DiscountORnot = "";
if ($product->prices['discountAmount']) {
    $DiscountORnot = "FlexibleDiscount";
}

and everything will be good to go. SALE badge will be displayed correctly on VM - Frontpage

3- To change the Х% OFF to - X%, open this PHP file:
/templates/flexible_sportmart/html/com_virtuemart/sublayouts/prices.php

find this line:
echo '<span class="FlexiblePercentage">'.$discountPercentage.'% OFF </span>';

replace it with this:
echo '<span class="FlexiblePercentage"> - '.$discountPercentage.'% </span>';

and you will be good to go.

If you like SportMArt and satisfied with the suppose you receive; can you please “Write a Review” on the URL below?
www.flexiblewebdesign.com/Joomla-Virtuemart-Templates/SportMart (this is our website, you don’t need to register to write review, you can use your existing account with us)

Rate the SportMart and write couple of sentences to share your experience with the support-team. Just 2-3 sentences would be enough ;) It might sound simple to you, but it is extremely important. Potential customers care about product reviews very much.

Thanks in advance!

Regards,
Support
The administrator has disabled public write access.

Products on homepage 7 years 10 months ago #14309

Thank you for your assistance. Now all works fine. Can you give me one more little advice: where is best place to put google tag manager code in your template?

And one more question: how you turn off the confirm order in checkout page in the demo? In my case customers must push button twice to place order. So I use third party one page checkout component, but in this case I have a problem with registration.

PS: I have already wrote review...
Last Edit: 7 years 10 months ago by Myroslav Vlasiuk.
The administrator has disabled public write access.

Products on homepage 7 years 10 months ago #14316

Hi,

To implement the Google Micro Datas to product page (image, name, price, ratings, reviews etc..) see this topic:
www.flexiblewebdesign.com/forum-joomla-virtuemart-template-stylemart-support/3299-problem-share-google-plus#13901

To avoid clicking the checkout/confirm button twice during the checkout;
- Get the latest Virtuemart version (VM3.0.16)
- Get the latest SportMart version (v3.1)
- Activate this option: Ajax for OPC via Virtumeart Backend >> Configuration >> Checkout

regards.
The administrator has disabled public write access.

Products on homepage 7 years 10 months ago #14330

Thanks for reply!

When I'm talking about Google Tag Manager I mean described in attached '1.png' file application.

Code for it should be added to template with Google Analitycs code.

But error messege appear (see attachment error.jpg).

Please suggest.

Thank you!
Attachments:
The administrator has disabled public write access.

Products on homepage 7 years 10 months ago #14338

Hi,

I am not sure how exactly Google TAG Manager works. Do you want to include the "Google Analytics" script tag to your website?

You can do it via "Template Manager". Open the template settings and see the screenshot below:

Attachment Pasted_Image_6_27_16__6_13_PM.png not found



Regards.
The administrator has disabled public write access.
Time to create page: 0.280 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo