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.

Dedication and passion goes to those who are able to push and merge a project.

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/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, 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 170 guests