Search found 71 matches

Search found 71 matches

Show product attribute/s in featured module on homepage (no plugin).

Let's say I want to display product attributes. I have attributes like: Width: 100, 200, 300 Package: Standard, Premium Options: Express, Normal Is there an option to display ONLY "Package" attribute for example in featured module twig file under price? Can I get this variable, and display it? Maybe...

Jump to post
  • Mon Jun 29, 2020 5:15 pm
  • Replies 1
  • Views 71
Re: Display shop e-mail on contact page

OK, my mistake. The problem was simple. I added $data for email inside if ($location_info) and in my case it's empty. I moved it right after

Code: Select all

$data['comment'] = $this->config->get('config_comment');
around line 80, and now it works.

Jump to post
  • Sun Dec 08, 2019 5:19 am
  • Replies 5
  • Views 335
Re: Display shop e-mail on contact page

Now I see page has commented all my php echo like this:

Code: Select all

<!-- <?php echo $config_email; ?> -->
I cant add PHP inside twig files in OC 3.x?

So I was trying to do it in this way: {{ config_email }} but also does not work.

Jump to post
  • Sun Dec 08, 2019 5:01 am
  • Replies 5
  • Views 335
Re: Display shop e-mail on contact page

cyclops12 wrote:
Sun Dec 08, 2019 4:40 am
What do you mean not working what is happening?
Nothing shows. Maybe in OC 3 store e-mail has different variables name or something?

Jump to post
  • Sun Dec 08, 2019 4:44 am
  • Replies 5
  • Views 335
[SOLVED] Display shop e-mail on contact page

I want to show email address on contact page in my OC 3.x. I was trying this solution but it is not working in 3.x: viewtopic.php?t=169190

Jump to post
  • Sun Dec 08, 2019 4:36 am
  • Replies 5
  • Views 335
Re: Show input field if radio option is selected [Product page]

OK, i made it in this way: <style> .idcardnumber{ display:none; } </style> <script type="text/javascript"> $(document).ready(function() { $('input[type="radio"]').click(function() { if($(this).attr('value') == '18') { $('.idcardnumber').show(); } else { $('.pesel').hide(); } }); }); </script> But I ...

Jump to post
  • Wed Oct 23, 2019 7:27 am
  • Replies 5
  • Views 370
Re: Show input field if radio option is selected [Product page]

I know how to write it, but I asked is there maybe other easiest way to do it in OC ;)

Jump to post
  • Tue Oct 22, 2019 4:29 pm
  • Replies 5
  • Views 370
Show input field if radio option is selected [Product page]

Hey guys! I have 3 radio option fields on product page. I need to show extra input (text field) ONLY if one of them is selected. How to do it? I think the simplest way will be add another option position (input text) and then add in jQuery simple if/else to show this input only is specific radio is ...

Jump to post
  • Tue Oct 22, 2019 4:14 pm
  • Replies 5
  • Views 370
Re: Google gtag_report_conversion - how to add tracking to order confirm button?

OK, here is the way how I made it. Maybe someone would like to use it in the future! 1. Add this code to: /catalog/controller/common/header.php $data['route'] = isset($this->request->get['route']) ? $this->request->get['route'] : 'common/home'; 2. Add this if/else code to: /catalog/view/theme/defaul...

Jump to post
  • Sat Oct 19, 2019 8:57 pm
  • Replies 2
  • Views 359
Re: Custom code in <head> section on contact page?

You had it right earlier... {% if route == 'information/contact' %} My code here {% endif %} This works good. I asking because I used this tool: https://php2twig.com/index.php and it showed me this: {% if route is 'information/contact' %} my code {% endif %} And ERROR after save :/ "is" not working...

Jump to post
  • Sat Oct 19, 2019 4:39 am
  • Replies 13
  • Views 612
Re: Custom code in <head> section on contact page?

Yes but I have one more question. I added this code to my header.php controller file: $data['route'] = isset($this->request->get['route']) ? $this->request->get['route'] : 'common/home'; And now I need to add if/else in theme file (twig), but I can't add there normal PHP, I need to use there TWIG la...

Jump to post
  • Sat Oct 19, 2019 4:27 am
  • Replies 13
  • Views 612
Re: Custom code in <head> section on contact page?

OK, so basicly I shoud now move my whole code from backend theme editor directly to twig files on FTP (just ovverride them)? I prefer to use FTP and Dreamveawer, not this shi*** backend editor :D

Jump to post
  • Sat Oct 19, 2019 4:18 am
  • Replies 13
  • Views 612
Re: Custom code in <head> section on contact page?

But won't that delete my code on backend theme editor? Maybe first I should replace FTP files with my current code in backend editor? I Made lots of changes there.

Jump to post
  • Sat Oct 19, 2019 4:07 am
  • Replies 13
  • Views 612
Re: Custom code in <head> section on contact page?

I have! But after edit twig file on FTP catalog, and clear cache nothing shows on source code. So I use dashboard theme editor instead.

Jump to post
  • Sat Oct 19, 2019 3:58 am
  • Replies 13
  • Views 612
Re: Custom code in <head> section on contact page?

d3z1gnr wrote:
Sat Oct 19, 2019 3:35 am
This might be what you looking for viewtopic.php?t=171486#p650375
So your route would be 'information/contact'
Ok, this could work maybe... but how to add it to theme editor on backend, in this way?

Code: Select all

{% if route == 'xxx/yyy' %}
My code here
 {% endif %}
  

Jump to post
  • Sat Oct 19, 2019 3:47 am
  • Replies 13
  • Views 612
Custom code in <head> section on contact page?

I need to add custom code in <head> section only on contact page. I can't find this functionality in dashboard so I think some if/else code will be needed. Any ideas how to do it?

Jump to post
  • Sat Oct 19, 2019 3:30 am
  • Replies 13
  • Views 612
Google gtag_report_conversion - how to add tracking to order confirm button?

Hi guys I want to add gtag_report_conversion to final button on checkout page, but don't know how to do it. Help needed! :)

Jump to post
  • Fri Oct 18, 2019 10:36 pm
  • Replies 2
  • Views 359
Re: Add custom PDF file on product page (different for all products).

Second plugin is not what I want. It converting page to PDF, not allows me to put PDF file in backend and show it on product page.

First one could work but I prefer to put single link wherever on product page I want. I don’t use tabs there because it is my own custom theme.

Jump to post
  • Tue Oct 15, 2019 6:08 pm
  • Replies 5
  • Views 389
Add custom PDF file on product page (different for all products).

How to add custom file on product page? Every product must have different file (user manual). I don't want to use any plugins. I don't have many products so it could be twig file modification like: if product-ID = X then show -> manual_x.pdf In WP I could use simple if/else for example using ACF plu...

Jump to post
  • Tue Oct 15, 2019 2:40 am
  • Replies 5
  • Views 389

Search found 71 matches