eCommerce construction > Embedding
embedding categories
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
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:
--- 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
--- End quote ---
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.
HADY:
Hello,
Any ideas please?
Thank you...
Basara:
Share please link to page with issue
Navigation
[0] Message Index
[#] Next page
Go to full version