Forum for discussing general topics related to Couch.
14 posts Page 1 of 2
Hi,

I'm exploring the concept of Couch Cart. As I'm working for first time on cart I'm not clear about few things.
After I get successfully checkout from cart Its redirecting me to PayPal login page but I just wanted to redirect my client directly to payment page. How can I do that. Do I have to mention my PayPal account details somewhere in the code.

Can anyone advise me for the same?
:?:

Thanks!
Please any one can help me out of this
You want to be precise and explicitly explicative in describing your situation to get attention.
@trendoman, I think I understand what OP is complaining about.
@Rupesh1986, it appears that PayPal have silently made some changes.
Previously, upon checkout, following is where we used to land on PayPal's site -
pp.png
pp.png (29.77 KiB) Viewed 1596 times

However, as of today, this is where we land up -
pp2.png
pp2.png (16.58 KiB) Viewed 1596 times

The most notable change is that now one cannot make a payment (through credit/debit cards) without first having a PayPal account.
Please note that in your (i.e. merchant's) account settings there is an option for allowing/disallowing non-paypal account holders to pay. I am getting the above screen even with that option set to allow such users.

I am not sure if this is a permanent change (couldn't find anything of import online) but if it is, it is terrible.
Thank you so much for your revert @KK and @trendoman.
Hi,

I was using PayPal as default payment gateway for my couchCMS cart but nowadays one cannot make a payment (through credit/debit cards) without first having a PayPal account. Which is really a time consuming task for payer. That's why I have decided to switch payment gateway part to "razorpay". I'm using following script to generate payment gateway checkout section. But I wanted to pass my final Total amount of cart to data-amount="10000" section of following code. Can anyone advise me for the same? :roll:

<form action="thankyou.html" method="post">
<script
src="https://checkout.razorpay.com/v1/checkout.js"
data-key="My API KEY"// Your Api kEY
data-amount="10000"
data-currency="INR"
data-buttontext="Pay Now"
data-name="Rupesh"
data-description="TEST TRANSACTION"
data-image="LOGO" ///Your Company Logo
data-prefill.name=""
data-prefill.email=""
data-notes.fieldname=""
data-theme.color="#422291"
>
</script>
<input type="hidden" value="Hidden Element" name="hidden">
</form>

Thanks!
Any suggestions plz.....
Tag cms:pp_total gets the final payable amount of the Cart.
This is what the buyer pays after applying all discounts, shipping and taxes.
═══════════════════════════
It has no parameters.
For example -

Code: Select all
<cms:pp_total />



Use it to display the amount of the cart e.g.

Code: Select all
Total: <cms:pp_currency_symbol /><cms:number_format "<cms:pp_total />" />


________________
Developer tips

Complete Couch Cart data is stored in session variable kcart and contains -
Code: Select all
    items                      sub_total_discounted
    count_items                taxes
    count_shippable_items      shipping
    sub_total                  total
    discount                   custom_vars
Thank you so much for your revert @ trendoman. I have one more question can I multiple my total cart amount by 100. As in rajorpay 940 = 9.40. So I wanted multiply my total cart amount with 100. Following is my code.

<form action="thankyou.html" method="post">

<script
src="https://checkout.razorpay.com/v1/checkout.js"
data-key="rzp_test_wCJKRzijnvH2cU"// Your Api kEY
data-amount="<cms:number_format "<cms:pp_total />" />"
data-currency="INR"
data-buttontext="PAY NOW"
data-name="VISPACE"
data-description="TEST TRANSACTION"
data-image="http://v-space.in/img/Vspace.png" ///Your Company Logo
data-prefill.name=""
data-prefill.email=""
data-notes.fieldname=""
data-theme.color="#422291"
>
</script>

<input type="hidden" value="Hidden Element" name="hidden">
</form>

Thanks in advance
Tag cms:mul multiplies the first parameter by the second parameter.
════════════════════════════════════════════════════════════════════════════════════
The parameters may be literal strings, variables or output of other tags.
For example -

Code: Select all
<cms:mul '1' '2' />

<cms:mul my_count '1' />

<cms:mul "<cms:add x y >" z />    :    (x + y) * z


! There will be no output if any of the parameters is an array.

All the math tags -
Code: Select all
    add     mul     incr     mod
    sub     div     decr


██████ Compiled by Anton aka Trendoman <tony.smirnov@gmail.com> █
14 posts Page 1 of 2