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

Michel

Active Member

Posts

Joined
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 support@thekrotek.com


User avatar
Expert Member

Posts

Joined
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.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
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

<?php 
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 https://www.w3schools.com/php/

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Maxidays » Mon Jun 14, 2021 11:59 pm

Thanks very much :D

Active Member

Posts

Joined
Thu Oct 10, 2019 7:18 am
Who is online

Users browsing this forum: No registered users and 32 guests