How can I display them available coupon codes or offers when they logged in ?
Then you would not have to use a php if statement ..
Ideally you would not want to hard code that - (unless you have no intention of changing them) you would want to write an OCMOD
Since there is no OC version posted the rest you will have to work out .. sorry ..
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
Thank you for reply...by mona wrote: ↑Tue Sep 08, 2020 12:52 amI would suggest to add it to your account/account page
Then you would not have to use a php if statement ..
Ideally you would not want to hard code that - (unless you have no intention of changing them) you would want to write an OCMOD
Since there is no OC version posted the rest you will have to work out .. sorry ..
I am using 3.0.3.3
Can you please elaborate how to add coupons to account/account ??
adding before {{ content_bottom }}</div> something like
Code: Select all
<br><br>
<div class="coupon">COUPON CODE : 12345 50% OFF ALL ORDERS</div>
<div class="coupon">COUPON CODE : ABCD 10% OFF MACS</div>
Code: Select all
.coupon {
padding: 30px;
width: 200px;
display: inline-block;
text-align: center ;
background-color: #676767;
color: white;
}
Attachments
Screen-Shot-2020-09-07-at-18.35.10.jpg (84.54 KiB) Viewed 474 times
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Ohh.. Got it.. I need to add html code in account twig file via theme editor....by mona wrote: ↑Tue Sep 08, 2020 1:44 amThis falls outside of the scope of free support .. but in its simplest form
adding before {{ content_bottom }}</div> something like
with your stylesheetCode: Select all
<br><br> <div class="coupon">COUPON CODE : 12345 50% OFF ALL ORDERS</div> <div class="coupon">COUPON CODE : ABCD 10% OFF MACS</div>
will give youCode: Select all
.coupon { padding: 30px; width: 200px; display: inline-block; text-align: center ; background-color: #676767; color: white; }
But i will need to edit it manually everytime, I create a new coupon....right ??
.. Thank you for solution
all store owners what do to aware their customers about these coupon codes ?? how their customers know the coupon code to use during view cart and checkout ??
this BRINGS people to the site to shop, not wait for them
having a code as a pop up when you enter on the homepage is a popular choice also
or add a code with the order confirmation / shipped update - for deal on the next order
It is often too late once logged in to be honest - they login to pay
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84