Search found 52 matches

Search found 52 matches

Re: Is it possible to do this math in Twig?

But even not using journal2 i still dont get it to work on the default theme.

Sent you a PM.

Jump to post
  • Wed Oct 25, 2017 8:04 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Yes I did that too. And in the system setting I turned off the cache system.

Jump to post
  • Wed Oct 25, 2017 7:53 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Yup. you got my message and replied and I replied to you. :)

Jump to post
  • Wed Oct 25, 2017 7:51 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

I did not get one from you... I sent you one in return... sitting in outbox?? Heres something else I did... I went in and changed out journal2 as the theme and back to default... and I edited the default template to include the new call for the discounted price. Refreshed all caches etc. And still d...

Jump to post
  • Wed Oct 25, 2017 7:48 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Even on my phone I get the same 2 columns. This is going to make me pull my friggen hair out.

Jump to post
  • Wed Oct 25, 2017 7:35 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

I cleared the cache a couple of times on the theme... sass and in journal there is a clear cache tool... and I turned off the chace system in journal2 Then I refreshed the modifications to clear cache on extensions. Cleared cache on my browser here on my mac. I even went in and asigned a SEO url for...

Jump to post
  • Wed Oct 25, 2017 7:33 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

OMG This is so friggen frustrating. I go into: catalog/controller/product/product.php Make the changes... and then save... and then make the changes for client side in: catalog/view/theme/journal2/template/product/product.twig And no matter what I change in the controller file... it takes but nothin...

Jump to post
  • Wed Oct 25, 2017 7:08 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Thanks I will give this a try when I get back home. Thank you!!

Jump to post
  • Wed Oct 25, 2017 5:08 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

When trying to use the trim tag... I got Warning: trim() expects at most 2 parameters, 3 given in /home/printingparties/public_html/system/library/template/Twig/Environment.php(403) : eval()'d code on line 1031 or 0 with 10% Discount - Use Code: SAVE10 That was the error messages.. I would get one f...

Jump to post
  • Wed Oct 25, 2017 3:56 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

In the controller products.php file I have the code you provided. In the template I have: <table><TR> <TD colspan=3>THIS IS A TEST</TD></TR> {% for discount in discounts %} <TD> {{ discount.quantity }}</TD><TD>{{ discount.price }}</TD><TD> or {{ discount.discountedprice }} with discount </TD></TR> {...

Jump to post
  • Wed Oct 25, 2017 3:12 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Yes... thats what I get so its still not working. there should be 2 prices...

24 - $1.09 or $0.99 with Discount

Jump to post
  • Wed Oct 25, 2017 3:09 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Thank you again. I made the suggested changes and calling the new variable... but it is not showing. Im thinking it may be a cache issue... I tried clearing the theme cache and the sass cache... but still the page loads the same. Do you see the new discount pricing show: http://printingforparties.co...

Jump to post
  • Wed Oct 25, 2017 2:43 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

OKSiteBuilder... Could you do this in the controller with FTP Access for a fee? PM me. I tried to PM you but could not.

Angelina

Jump to post
  • Wed Oct 25, 2017 1:17 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Ok tried it as:

{% set numericDiscount = discount.Price|trim('$', 'left') %}
{% set Number = numericDiscount * 0.90 %}
or {{ Number }} with discount

Fatal crashed will all sorts of errors.

Jump to post
  • Wed Oct 25, 2017 1:00 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

OMG I was just thinking if the trim had to be done on its own. I tried just viewing the trim itself and got the same error:

Code: Select all

{{  discount.Price|trim('$', 'left') }}
But I will give what you just said a try.

Jump to post
  • Wed Oct 25, 2017 12:52 am
  • Replies 45
  • Views 7693
Re: Is it possible to do this math in Twig?

Thank you UKSiteBuilder... However your line of code did not work... I got the following error using the code as you provided: Warning: trim() expects at most 2 parameters, 3 given in /home/printingparties/public_html/system/library/template/Twig/Environment.php(403) : eval()'d code on line 1031 or ...

Jump to post
  • Wed Oct 25, 2017 12:31 am
  • Replies 45
  • Views 7693
Is it possible to do this math in Twig?

Greetings. Im trying to make the Discount Prices on the product page into a table... which I figured out. So the first column I have the Discount Quantity. Second Column I have the Discount Price. In a 3rd column I would like to show what the price would be with my storewide discount. So for Example...

Jump to post
  • Tue Oct 24, 2017 10:30 am
  • Replies 45
  • Views 7693
Re: Hide / remove the Discount Price List on Product Page

In 3.0, when you delete something from the twig files, you need to clear the twig cache. This is inexplicably hidden in the "gear" icon on the admin dashboard. I was clearing the cache on my browser... thinking and in the journal settings with no success. But when I looked for the clear c...

Jump to post
  • Sat Oct 21, 2017 2:42 am
  • Replies 4
  • Views 1562
Re: Hide / remove the Discount Price List on Product Page

Well, if no Product Discount Price has been set, no such price will show up anywhere. ::) Ernie Yes Ernie... I know that. I do want discount pricing but I want to show it with a graphic representation... so just doing away with the discount is not the answer... but thanks for replying just the same...

Jump to post
  • Sat Oct 21, 2017 2:22 am
  • Replies 4
  • Views 1562
Hide / remove the Discount Price List on Product Page

Is there a way to hide / remove the Discount Price List on the shop's Product Page? I tried deleting the coding in the following: catalog > view > theme > default > templates > product > product.twig and removed: {% if discounts %} <li> <hr> </li> {% for discount in discounts %} <li>{{ discount.quan...

Jump to post
  • Fri Oct 20, 2017 9:14 am
  • Replies 4
  • Views 1562

Search found 52 matches