Post by Maxidays » Tue May 04, 2021 4:27 pm

Hello, my OP is 2.1

I want to know how have 2 variable in same code :
like upc + price>75

<?php if ($upc) { ?> + <?php if ($price>75) { ?>

Thanks for your help


Active Member


Thu Oct 10, 2019 7:18 am

Post by thekrotek » Tue May 04, 2021 4:58 pm

You really should start with reading/watching some PHP tutorials and don't ask basic coding questions on OpenCart forums.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by

User avatar
Expert Member


Sun Jul 03, 2016 12:24 am

Post by straightlight » Tue May 04, 2021 7:10 pm

Posted OC version incomplete. StackOverFlow request.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Programmer / Opencart Tester

Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Tue May 04, 2021 7:38 pm

Maxidays wrote:
Tue May 04, 2021 4:27 pm
<?php if ($upc) { ?> + <?php if ($price>75) { ?>

Code: Select all

if(isset($upc) && $price > 75) {
Although that doesn't really make any sense so you do need to start with some basics.

I'd recommend

For quick, professional OpenCart support please email

User avatar
Guru Member


Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 38 guests