AbanteCart Community

eCommerce construction => Embedding => Topic started by: HADY on January 07, 2022, 08:56:15 AM

Title: embedding categories
Post by: HADY on January 07, 2022, 08:56:15 AM
Hello,


I use last versions of Abantecart and php on website

I embedded a categories html code in a new category but i got a problem in the website when showing that category screen as you can see this in the screenshot.

What to do to fix it ??


Thank you
Title: Re: embedding categories
Post by: Basara on January 10, 2022, 12:34:56 AM
Hello.
Did you embed the categories inside other category description?
Did you use Visual editor when editing the category description?
Do you see errors in the browser console
Title: Re: embedding categories
Post by: HADY on January 10, 2022, 02:43:14 AM
Hello.
Did you embed the categories inside other category description?
Did you use Visual editor when editing the category description?
Do you see errors in the browser console


Hello,

Yes, I embedded categories inside other category's description.

I used W3Schools live editor to modify the code

In the browser console no errors related to this issue i guess. they are about the JS of Trusted Site Logo which located in the bottom of the pages.

Examples:

Here an original given embedded category code:

<script src="https://imkotekstil.com.tr/index.php?rt=r/embed/js" type="text/javascript"></script>
<ul style="display:none;" class="abantecart-widget-container" data-url="https://imkotekstil.com.tr/" data-css-url="https://imkotekstil.com.tr/storefront/view/default/stylesheet/embed.css" data-language="en" data-currency="EUR">
   <li id="abc_164179978461429" class="abantecart_category" data-category-id="29" data-language="en" data-currency="EUR">
      <span class="abantecart_image"></span>
      <h3 class="abantecart_name"></h3>
      <p class="abantecart_products_count"></p>
   </li>
</ul>

Here is the Edited and final code:

<script src="https://imkotekstil.com.tr/index.php?rt=r/embed/js" type="text/javascript"></script>
<style="display:none;" class="abantecart-widget-container" data-url="https://imkotekstil.com.tr/" data-css-url="https://imkotekstil.com.tr/storefront/view/default/stylesheet/embed.css">
   <li id="abc_164179978461429" class="abantecart_category" data-category-id="29">
      <span class="abantecart_image"></span>
      <p class="abantecart_products_count"></p>
   </li>


In the edited code i removed the next element <ul> </ul> and the language & currency tags from the code to push the browser to show the exactly browser's language as also removed the name of category too.



Is there anything wrong?


Thank you.
Title: Re: embedding categories
Post by: HADY on January 13, 2022, 05:03:10 AM
Hello,

Any ideas please?

Thank you...
Title: Re: embedding categories
Post by: Basara on January 13, 2022, 06:59:59 AM
Share please link to page with issue
Title: Re: embedding categories
Post by: HADY on January 13, 2022, 08:52:34 AM
Thank you Mr. Basara,

here is the link:
https://imkotekstil . com . tr/products
Title: Re: embedding categories
Post by: Basara on January 14, 2022, 12:17:45 AM
You have javascript errors on the page. Possibly it is the reason other javascript code is not work