News:

AbanteCart v1.4.2 is released.

Main Menu

embedding categories

Started by HADY, January 07, 2022, 08:56:15 AM

Previous topic - Next topic

HADY

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
Thank you In Advanced
Regards
HADY

Basara

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

HADY

#2
Quote from: 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


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.
Thank you In Advanced
Regards
HADY

HADY

Hello,

Any ideas please?

Thank you...
Thank you In Advanced
Regards
HADY

Basara

Share please link to page with issue

HADY

Thank you Mr. Basara,

here is the link:
https://imkotekstil . com . tr/products
Thank you In Advanced
Regards
HADY

Basara

You have javascript errors on the page. Possibly it is the reason other javascript code is not work

Forum Rules Code of conduct
AbanteCart.com 2010 -