Hello there,

It would be nice if the monthly payment promotion modal feature integrated along with uc_affirm module.
Like the content managers or developers will place a general structure link, then it should be dynamically linked to Affirm monthly promotion modal pop up.

Comments

Jyotish created an issue. See original summary.

harivenuv’s picture

Assigned: Unassigned » harivenuv
Status: Active » Needs work
harivenuv’s picture

Status: Needs work » Needs review
StatusFileSize
new0 bytes

hai, I created a js file for make this generic solution. That support generic solution of the monthly payment solution.

ID based generic link (One link per page usage).

<a id="affirmmpp" href="#" data-value="{Amount}" ></a>

The above link that paste to your page. Replace the {Amount} with an amount. The amount must be an integer value.

If the product have a variants <div style="display:none;" id="dynamic-affirmmpp" ></div> put this link in your page. The innerHTML value of the DIV must be an integer value.

You can use multiple links in same page <a class="cls-affirmmpp" href="#" data-value="{Amount}" ></a>. Replace the {Amount}
with an integer number.

I attach a patch.

harivenuv’s picture

StatusFileSize
new6.17 KB
anish.a’s picture

The instructions mentioned here can be added in the README file.

harivenuv’s picture

harivenuv’s picture

Yes #Anish, I added the instructions in to the readme.txt

Attached the new patch

anish_zyxware’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new9.21 KB

Modified the files a bit to adjust the formating.

  • anish.a committed 7617102 on 7.x-1.x authored by anish_zyxware
    Issue #2713645 by harivenu_zyxware, anish_zyxware: A generic solution to...
anish_zyxware’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.