Search found 75 matches

Search found 75 matches

Re: Quantity type displayed under input field

It must be only text information, nothing more. I am using custom radio button options for TAX settings. This page is preatty much modified, and options built in Function is completly changed with some extra PHP and JS functions. I must use something else. Only 5 products need this, and simple cond...

Jump to post
  • Mon Aug 17, 2020 5:45 pm
  • Replies 8
  • Views 335
Re: Quantity type displayed under input field

and the problem with xxvirusxx idea which was better in that case anyway is? As I said, my OC has been much modified, and many default plugins, and options was re-built to achieve functionality from UX prototypes. So also discout functionality is modyfied, and we using it to show customers other op...

Jump to post
  • Mon Aug 17, 2020 5:43 pm
  • Replies 8
  • Views 335
Re: Quantity type displayed under input field

It must be only text information, nothing more. I am using custom radio button options for TAX settings. This page is preatty much modified, and options built in Function is completly changed with some extra PHP and JS functions. I must use something else. Only 5 products need this, and simple condi...

Jump to post
  • Mon Aug 17, 2020 5:28 pm
  • Replies 8
  • Views 335
Quantity type displayed under input field

I want to display quantity type under amount input field on product page. It will be simple text informations for customers for example: - Price for 1 pallet - Price for 5 pallets Any ideas how to do this without any plugin? It would be great if I could create simple conditional for a specific produ...

Jump to post
  • Mon Aug 17, 2020 5:17 pm
  • Replies 8
  • Views 335
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...

Jump to post
  • Mon Jun 29, 2020 5:15 pm
  • Replies 1
  • Views 182
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 1211
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 1211
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 1211
[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 1211
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(); } }); ...

Jump to post
  • Wed Oct 23, 2019 7:27 am
  • Replies 5
  • Views 629
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 629
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 629
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 1104
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" n...

Jump to post
  • Sat Oct 19, 2019 4:39 am
  • Replies 13
  • Views 1318
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 1318
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 1318
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 1318
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 1318
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 1318
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 1318

Search found 75 matches