Product in content plugin Ajax / javascript problem

  • Posts: 224
  • Thank you received: 7
  • Hikashop Business
2 weeks 2 days ago #285307

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.1.5

Happy New Year Nicolas and team!

There appears to be a javascript problem with the output of the product in content plugin...
I am noticing two problems..

1. When a product is displayed in content the add to cart button doesn't trigger the ajax "product added to cart" display whereas this works fine on normal product pages

2. The product in content plugin breaks the standard bootstrap carousel if on the same page.

The site isn't public but I can pm a link to show what's going on.

Thanks,

Ian

Last Edit: 2 weeks 2 days ago by iedwards.

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

  • Posts: 224
  • Thank you received: 7
  • Hikashop Business
2 weeks 1 day ago #285339

Update on this: I have found that if I have the Hikashop cart module on the page the content plugin "add to cart" ajax function works, so presumably there is some script that the content plugin needs that is loaded by the cart module.

I still have the issue where the Bootstrap carousel breaks with the content plugin displayed on the same page.

This is the code I am using for the carousel which is loaded in a custom module

<div id="testimonialCarousel" class="carousel slide" data-ride="carousel"><!-- Carousel items -->
<div class="carousel-inner">
<div class="item active">
<div class="testimonial style-2 text-left"><span class="author-img"><img src="/images/testimonials/claire-elliott.jpg" alt="Claire Elliott - Creativity Backgrounds testimonial" /></span>
<h4>Claire Elliott</h4>
<p class="testimonial-text">Amazing products and service. Now to get some new backdrops!</p>
</div>
</div>
<div class="item">
<div class="testimonial style-2 text-left"><span class="author-img"><img src="/images/testimonials/Marko-Dutka-Portrait.jpg" alt="Marko Dutka Creativity Backgrounds testimonial" /></span>
<h4>Marko Dutka</h4>
<p class="testimonial-text">The backgrounds are a joy to work with and enabled me to really push my creative boundaries with regard to the lighting, colour palette, and composition of my images.</p>
</div>
</div>
<div class="item">
<div class="testimonial style-2 text-left"><span class="author-img"><img src="/images/testimonials/hoss-mahdavi.jpg" alt="Hooss Mahdavi - Creativity Backgrounds testimonial" /></span>
<h4>Hoss Mahdavi</h4>
<p class="testimonial-text">Shades of Red, Pink, Blue, Green, Yellow, Black and White are the most used in my portraits as I can generally match a clients dress or accessories with the backdrop. And each of these reacts differently in B&amp;W photography.</p>
</div>
</div>
<div class="item">
<div class="testimonial style-2 text-left"><span class="author-img"><img src="/images/testimonials/Nicole-of-The-Hourglass.jpg" alt="Nicole of The Hourglass - Creativity backgrounds testimonial" /></span>
<h4>Nicole Klein</h4>
<p class="testimonial-text">just wanted to let you know that your service is fantastic, your backgrounds are superb quality and your delivery time is the fastest I have come across. Thank you very much.</p>
</div>
</div>
</div>
<ol class="carousel-indicators">
<li data-target="#testimonialCarousel" data-slide-to="0" class="active"></li>
<li data-target="#testimonialCarousel" data-slide-to="1"></li>
<li data-target="#testimonialCarousel" data-slide-to="2"></li>
<li data-target="#testimonialCarousel" data-slide-to="3"></li>
</ol></div>

Thanks

Ian

Last Edit: 2 weeks 1 day ago by iedwards.

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

  • Posts: 1521
  • Thank you received: 218
  • MODERATOR
2 weeks 1 day ago #285310

Hello,

No PM please, Use our Contact us form to provide Url link (page with issue) and required references access, and important : add an Url link in your message to this topic.

Regards

Last Edit: 2 weeks 2 days ago by Philip.

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

  • Posts: 60529
  • Thank you received: 8531
  • MODERATOR
2 weeks 19 hours ago #285376

Hi,

Regarding the carousel, I would recommend installing and configuring the extension jQuery Easy.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum