Search found 90 matches

Search found 90 matches

Re: Twig less than isn't working considered as html opening tag

As a temporary compromise, I did the following ;D don't laugh

Code: Select all

{% if product.quantity > 0 %}
																
{% else %}
	<div class="insight-stock-label">{{ text_out_of_stock }}</div>
{% endif %}

Jump to post
  • Sat May 01, 2021 1:30 am
  • Replies 6
  • Views 272
Re: Twig less than isn't working considered as html opening tag

Full code of the incident request needed to assist. This part is extracted from category.twig <div class="image rotate-image-container"> {% if product.quantity < 0 %} <div class="insight-stock-label">{{ text_out_of_stock }}</div> {% endif %} <a href="{{ product.href }}"> <img src="{{ product.thumb ...

Jump to post
  • Sat May 01, 2021 1:28 am
  • Replies 6
  • Views 272
Re: Twig less than isn't working considered as html opening tag

straightlight wrote:
Fri Apr 30, 2021 8:28 pm
psytanium wrote:
Fri Apr 30, 2021 6:57 pm
Hello,

{% if product.quantity > 0 %} is working fine, but {% if product.quantity < 0 %} is considering the sign < as opening tag (like <div>) and result a html mess.

How do i write if quantity is less in twig ?

Thanks
OC version.
3.0.2.0

Jump to post
  • Fri Apr 30, 2021 8:31 pm
  • Replies 6
  • Views 272
Twig less than isn't working considered as html opening tag

Hello,

{% if product.quantity > 0 %} is working fine, but {% if product.quantity < 0 %} is considering the sign < as opening tag (like <div>) and result a html mess.

How do i write if quantity is less in twig ?

Thanks

Jump to post
  • Fri Apr 30, 2021 6:57 pm
  • Replies 6
  • Views 272
Re: Order emails warning

paulfeakins wrote:
Fri Apr 09, 2021 6:21 pm
psytanium wrote:
Fri Apr 09, 2021 4:16 am
How to authenticate my orders emails ?
You might need to set your SPF record and DKIM. You web host should be able to help you with that.
Thank you Paul. Fixed

Jump to post
  • Fri Apr 09, 2021 11:42 pm
  • Replies 3
  • Views 222
Order emails warning

Hello, All the orders emails received to Gmail, have a yellow big notification with this warning: Be careful with this message Gmail could not verify that it actually came from siteowner@email.com. Avoid clicking links, downloading attachments, or replying with personal information. How to authentic...

Jump to post
  • Fri Apr 09, 2021 4:16 am
  • Replies 3
  • Views 222
Re: Split payment in 2 transaction for 2 different companies

Hello, Is there a way to send part of each transaction as donation to an organization ? so part of the payment will be sent to our bank account, and a partial percentage will be sent to the organization bank account. Thanks, OC version. However, Stripe extensions could accomplish this from the Mark...

Jump to post
  • Tue Mar 30, 2021 12:57 am
  • Replies 4
  • Views 266
Split payment in 2 transaction for 2 different companies

Hello,

Is there a way to send part of each transaction as donation to an organization ? so part of the payment will be sent to our bank account, and a partial percentage will be sent to the organization bank account.

Thanks,

Jump to post
  • Fri Mar 26, 2021 3:03 am
  • Replies 4
  • Views 266
Re: Sitemap can be read, but has errors, Invalid date

This solved my problem viewtopic.php?f=188&t=166600
I don't know why Last modification date was 0001

Jump to post
  • Tue Mar 23, 2021 2:19 am
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

How do i intentionally rebuild the sitemap ?

I did some changed to the php file catalog/controller/extension/feed/google_sitemap.php and I want to generate new sitemap xml to test if its working.

Modifications > Modifications > Refresh ?

Jump to post
  • Tue Mar 23, 2021 12:53 am
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

and where is the sitemap.xml stored ? in which directory ? I didn't find it in root public_html

Jump to post
  • Tue Mar 23, 2021 12:27 am
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

The https://www.xmlvalidation.com/ is buggy, it doesn't fully respect the XSDs, hence coming up with a wrong error message! Try this instead: https://www.xml-sitemaps.com/validate-xml-sitemap.html It will produce a more meaningful error message: Incorrect http header content-type: "text/html" (expe...

Jump to post
  • Tue Mar 23, 2021 12:19 am
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

Try running it through here: https://www.xmlvalidation.com/ Hi Paul, Thank you for providing the XML validator. This is the result : Errors in the XML document: 1: 161 cvc-elt.1: Cannot find the declaration of element 'urlset'. Any idea ? This is where the sitemap is https://podium-lb.com/sitemap.xml

Jump to post
  • Mon Mar 22, 2021 9:39 pm
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

Come on, please be more specific. There are several feeds. If you are talking about the Google Sitemap feed, that one does not have your reported issue. Without further details, we won't be able to help you. Sorry I'm really lost what details I missed. Anyway... I enabled the default Google Sitemap...

Jump to post
  • Sat Mar 20, 2021 10:48 pm
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

The standard OC 3.0.2.0 sitemap uses a format like this: <lastmod>2021-01-16T11:30:27+00:00</lastmod> Hence, we are not able to help you, because you are not providing enough details. You most likely use a faulty OC extension which corrupts the sitemap. I'm using the default feed extension. Could i...

Jump to post
  • Sat Mar 20, 2021 9:18 pm
  • Replies 23
  • Views 939
Re: Sitemap can be read, but has errors, Invalid date

xxvirusxx wrote:
Sat Mar 20, 2021 4:33 pm
Opencart 3.0.2.0 and PHP 7.4?
Give more info...
Yes sry.. OC3.0.2.0 on PHP 7.3

Jump to post
  • Sat Mar 20, 2021 6:11 pm
  • Replies 23
  • Views 939
Sitemap can be read, but has errors, Invalid date

I opened the sitemap.xml file, the lastmod tag appears like this :

<lastmod>20212021-0303-0606T11:31:11+00:00</lastmod>

Jump to post
  • Sat Mar 20, 2021 12:55 am
  • Replies 23
  • Views 939
Re: Reasons behind using PHP engines like TWIG and TPL

Using Twig as a template engine certainly was a poor choice. The Symfony implementation of Twig is of poor quality, it does not directly translate from Twig into the final HTML. It's language syntax is bad, no proper LALR(1) grammar is defined here. Some of its operators use strange notations, such...

Jump to post
  • Sun Mar 14, 2021 9:58 pm
  • Replies 4
  • Views 306

Search found 90 matches