Post by vaidyamanishjoshi » Tue Sep 08, 2020 12:07 am

I have created few coupons for logged in members.

How can I display them available coupon codes or offers when they logged in ?

Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by by mona » Tue Sep 08, 2020 12:52 am

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

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by chongshengdz » Tue Sep 08, 2020 1:18 am

you need to write the codes yourself or try to search the marketplace if there is an extension meets your needs.

Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by vaidyamanishjoshi » Tue Sep 08, 2020 1:19 am

by mona wrote:
Tue Sep 08, 2020 12:52 am
I 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 ..
Thank you for reply...

I am using 3.0.3.3

Can you please elaborate how to add coupons to account/account ??

Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by by mona » Tue Sep 08, 2020 1:44 am

This falls outside of the scope of free support .. but in its simplest form
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>
with your stylesheet

Code: Select all

.coupon {
    padding: 30px;
    width: 200px;
    display: inline-block;
    text-align: center ;
    background-color: #676767;
    color: white;
}
will give you

Attachments

Screen-Shot-2020-09-07-at-18.35.10.jpg

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by vaidyamanishjoshi » Tue Sep 08, 2020 1:47 am

by mona wrote:
Tue Sep 08, 2020 1:44 am
This falls outside of the scope of free support .. but in its simplest form
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>
with your stylesheet

Code: Select all

.coupon {
    padding: 30px;
    width: 200px;
    display: inline-block;
    text-align: center ;
    background-color: #676767;
    color: white;
}
will give you
Ohh.. Got it.. I need to add html code in account twig file via theme editor....

But i will need to edit it manually everytime, I create a new coupon....right ??

.. Thank you for solution

Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by vaidyamanishjoshi » Tue Sep 08, 2020 1:52 am

I am surprized that if opencart is giving coupon code creation option, then why displaying it option not added ??

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 ??

Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by by mona » Tue Sep 08, 2020 1:57 am

most people would send via the newsletter -
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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: daniil_oc, OSWorX, pprmkr and 481 guests