Closed (fixed)
Project:
Ubercart Affirm
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Apr 2016 at 14:35 UTC
Updated:
11 May 2016 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
harivenuvComment #3
harivenuvhai, 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.
Comment #4
harivenuvComment #5
anish.a commentedThe instructions mentioned here can be added in the README file.
Comment #6
harivenuvComment #7
harivenuvYes #Anish, I added the instructions in to the readme.txt
Attached the new patch
Comment #8
anish_zyxware commentedModified the files a bit to adjust the formating.
Comment #10
anish_zyxware commented