Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: embedding categories  (Read 292 times)

Offline HADY

  • Sr. Member
  • ****
  • Posts: 278
  • Karma: +25/-5
    • View Profile
embedding categories
« 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
-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5071
  • Karma: +258/-2
    • View Profile
Re: embedding categories
« Reply #1 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

Offline HADY

  • Sr. Member
  • ****
  • Posts: 278
  • Karma: +25/-5
    • View Profile
Re: embedding categories
« Reply #2 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.
« Last Edit: January 10, 2022, 04:57:58 AM by HADY »
-----------------------------
Regards
HADY

Offline HADY

  • Sr. Member
  • ****
  • Posts: 278
  • Karma: +25/-5
    • View Profile
Re: embedding categories
« Reply #3 on: January 13, 2022, 05:03:10 AM »
Hello,

Any ideas please?

Thank you...
-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5071
  • Karma: +258/-2
    • View Profile
Re: embedding categories
« Reply #4 on: January 13, 2022, 06:59:59 AM »
Share please link to page with issue

Offline HADY

  • Sr. Member
  • ****
  • Posts: 278
  • Karma: +25/-5
    • View Profile
Re: embedding categories
« Reply #5 on: January 13, 2022, 08:52:34 AM »
Thank you Mr. Basara,

here is the link:
https://imkotekstil . com . tr/products
-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5071
  • Karma: +258/-2
    • View Profile
Re: embedding categories
« Reply #6 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

 

Powered by SMFPacks Social Login Mod