I have installed opencart 3.0.3.5 with J3, am adding a recurring payment profile in my product. Currently product page shows like this https://prnt.sc/tp5b94
I want to change the text "payment profile" to "xxxxxyzz" and i want to show all the recurring payment options like this https://prnt.sc/tp5efs so customer can chose what ever they like. I don't want to use dropdown menu option.
Any help will be highly appreciated.
Regards
Khnaz35
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Just a quick update as for text part change i already change it from the langue text. Now remaining is Showing all the available recurring profile on the page itself rather then dropdown box.
Regards
Khnaz35
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Well if you mean Journal 3 you won't get much help here, you should ask them.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
This is not related to j3, its opencart own functionality. Just want to change dropdown option to everything on the page, the rest will be same like selecting anyone option.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
I am trying to make the required changes on OC 3.0.3.5 version and i can see they have recurring profile i am currently working around it.
If you look here i have change the Recurring profile text to your subscription https://prnt.sc/tpmz4e.
Now second step i want to take is to show all the available subscription option on the page itself rather than dropdown menu. https://prnt.sc/tpmzt7 it should be like this https://prnt.sc/tpn03r.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Code: Select all
<select name="recurring_id" class="form-control">
<option value="">{{ text_select }}</option>
{% for recurring in recurrings %}
<option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option>
{% endfor %}
</select>
Better read my post again: use the loop to create new selectable options ...khnaz35 wrote: what do you mean by create the loop i want to make it like checkbox as was in screenshot
Code: Select all
{% for recurring in recurrings %} YOUR_CODE_HERE {% endfor %}
i got stuck here guys any helppprmkr wrote: ↑Wed Aug 05, 2020 4:22 pmAnd better not to use checkbox. Multiple options can be selected then.Code: Select all
{% for recurring in recurrings %} YOUR_CODE_HERE {% endfor %}
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Code: Select all
<option value="">{{ text_select }}</option>
its still show as drop down option and i couldn't find where it is getting like that the whole code is this
Code: Select all
{% if recurrings %}
<h3 class="title recurring-title">{{ text_payment_recurring }}</h3>
<div class="form-group required">
<select name="recurring_id" class="form-control">
<option value="">{{ text_select }}</option>
{% for recurring in recurrings %}
<option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option>
{% endfor %}
</select>
<div class="help-block" id="recurring-description"></div>
</div>
{% endif %}
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Code: Select all
{% if recurrings %}
<h3 class="title recurring-title">{{ text_payment_recurring }}</h3>
<div class="form-group required">
{% for recurring in recurrings %}
<label class="radio">
<input type="radio" name="recurring_id" value="{{ recurring.recurring_id }}" />
{{ recurring.name }}</label>
{% endfor %}
<div class="help-block" id="recurring-description"></div>
</div>
{% endif %}
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
I.E
Code: Select all
data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),
Thanks for pointing out the code has been updated and the twig is like this nowcyclops12 wrote: ↑Sat Aug 08, 2020 11:24 pmWould it be something to do with the javascript at the bottom of product.twig ?
I.EShould this be changed as it is not SELECT any moreCode: Select all
data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),
now is one more issue when i click on the recurring profile no matter what ever i chose their is only one description adding to cart.
https://prnt.sc/tx8pxp
https://prnt.sc/tx8qjd
i can confirm the admin side payment setting is correct
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Maybe try..
Code: Select all
#product input[name="recurring_id"]:checked
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Line 598:sw!tch wrote: ↑Tue Aug 11, 2020 6:03 amMaybe try..Code: Select all
#product input[name="recurring_id"]:checked
Code: Select all
input[name=\'recurring_id\']
Code: Select all
#product input[name="recurring_id"]
Code: Select all
:checked
Thanks Roelie, this worked.pprmkr wrote: ↑Tue Aug 11, 2020 3:07 pmLine 598:sw!tch wrote: ↑Tue Aug 11, 2020 6:03 amMaybe try..Code: Select all
#product input[name="recurring_id"]:checked
Line 622Code: Select all
input[name=\'recurring_id\']
Both add:Code: Select all
#product input[name="recurring_id"]
Code: Select all
:checked
how about css side
Code: Select all
/******************************
Default Options
*******************************/
.product-info .product-options .radio + .radio,
.product-info .product-options .checkbox + .checkbox {
margin: 0; }
.product-info .product-options h3 {
margin: 0; }
.product-info .product-options .img-thumbnail {
border-radius: 0;
border-width: 0;
outline: none;
padding: 0;
background-color: transparent; }
.product-info .product-options .help-block {
margin-bottom: 0; }
.product-info .product-options .help-block:empty {
margin: 0; }
.product-info .product-options .option-value {
margin: 0 5px;
line-height: 1.2; }
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Code: Select all
beforeSend: function() {
$('#recurring-description').html('');
},
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 117 guests