Jump to content



Photo
* * * * * 5 votes

Simple Checkout - for 2.3.1 (official support thread)


  • Please log in to reply
364 replies to this topic

#281   pfrecon

pfrecon
  • Members
  • 6 posts
  • Real Name:Josh

Posted 10 May 2012 - 20:08

Also since div.cartRow6 is visible on the top layer and is 75px wide it's possible to accidentally click remove product when using the scrollbar, on my theme at least.

#282   Two Pillars

Two Pillars
  • Members
  • 15 posts
  • Real Name:Paul

Posted 10 May 2012 - 22:59

So, I'm quite confident that 3.0 and 3.1 DO NOT work with PHP 5.1.6!!! True?

#283   pfrecon

pfrecon
  • Members
  • 6 posts
  • Real Name:Josh

Posted 11 May 2012 - 11:28

Awesome you fixed the issue I was having in the 3.0.1 release! Thank you so much. And you fixed the redirect to the cart page!!

I really tried to understand why it was breaking out of a parent container to fix it myself but could not figure it out.

Thanks for being active and doing so much back and forth with the community while you're developing.

Edited by pfrecon, 11 May 2012 - 11:37.


#284 ONLINE   altoid

altoid
  • Community Sponsor
  • 1,050 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 11 May 2012 - 11:41

Jetta, testing the latest release...all is working with PayPal and Money Order Only Purchases.

Thanks
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#285   PiLLaO

PiLLaO
  • Members
  • 159 posts
  • Real Name:Gustavo

Posted 11 May 2012 - 17:49

Hello /happy.png' class='bbc_emoticon' alt='^_^' />

auto update cart contents will no longer available? /blush.png' class='bbc_emoticon' alt=':blush:' />

#286   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 12 May 2012 - 17:29

@pfrecon

Yes, I noticed those issues myself, and got them taken care of and uploaded.

@chemist4

I also fixed the auto refresh when discount codes are entered.

@PiLLaO

Yes. I removed the auto-update. If you want to add it back in then do this:

Find around 752:

  .on('change', 'input[name=shipping]', function(){$.post('checkout.php', 'shipping='+$(this).val()+'&comments='+$('textarea[name=comments]').val(), function(){window.location.href = unescape(window.location.pathname);});})

Add this before that line:

  .on('change', 'input[name^=cart_quantity]', function(){$('form[name=cart_quantity]').submit();})

As written now, if a customer enters a new quantity and hits enter, it will automatically submit the change (without that line of code).

The difference that the extra line of code will make is this: If a customer changes the number and clicks tab, or clicks the mouse anywhere else on the screen directly from the input field, it will also submit the form, the same as if they clicked enter, or clicked the refresh button itself.

#287   chemist4

chemist4
  • Members
  • 105 posts
  • Real Name:Tim
  • Gender:Male
  • Location:Missouri

Posted 12 May 2012 - 21:33

Sorry, it still doesn't work in either Safari 5 or Firefox. The page seems to refresh, but the code is not applied.

#288   RCHobbyAddict

RCHobbyAddict
  • Members
  • 54 posts
  • Real Name:Anam Aggarwal

Posted 13 May 2012 - 07:51

Hello,
I am trying to modify it according to the Points and Reward system.
I am stuck at the part where I need to modify checkout_process.php
I am stuck for the following modification and cannot find where to put the additional code in checkout.php
---------------------------------------------------------------------------------------------------
Find this.... (start at aprox. line no.134)

tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);
}

.. and add this after...

#### Points/Rewards Module V2.1beta balance customer points BOF ####
if ((USE_POINTS_SYSTEM == 'true') && (USE_REDEEM_SYSTEM == 'true')) {
// customer pending points added
if ($order->info['total'] > 0) {
$points_toadd = get_points_toadd($order);
$points_comment = 'TEXT_DEFAULT_COMMENT';
$points_type = 'SP';
if ((get_redemption_awards($customer_shopping_points_spending) == true) && ($points_toadd >0)) {
tep_add_pending_points($customer_id, $insert_id, $points_toadd, $points_comment, $points_type);
}
}
// customer referral points added
if ((tep_session_is_registered('customer_referral')) && (tep_not_null(USE_REFERRAL_SYSTEM))) {
$referral_twice_query = tep_db_query("select unique_id from " . TABLE_CUSTOMERS_POINTS_PENDING . " where orders_id = '". (int)$insert_id ."' and points_type = 'RF' limit 1");
if (!tep_db_num_rows($referral_twice_query)) {
$points_toadd = USE_REFERRAL_SYSTEM;
$points_comment = 'TEXT_DEFAULT_REFERRAL';
$points_type = 'RF';
tep_add_pending_points($customer_referral, $insert_id, $points_toadd, $points_comment, $points_type);
}
}
// customer shoppping points account balanced
if ($customer_shopping_points_spending) {
tep_redeemed_points($customer_id, $insert_id, $customer_shopping_points_spending);
}
}
#### Points/Rewards Module V2.1beta balance customer points EOF ####*/


---------------------------------------------------------------------------------------------------

#289   RCHobbyAddict

RCHobbyAddict
  • Members
  • 54 posts
  • Real Name:Anam Aggarwal

Posted 13 May 2012 - 08:12

Ok. It is not working... how to get it to work...? This is a really good contribution and I need it.

Also, I am having one more problem. In the checkout.php, it shows the summary of the cart. There if I have 5 items, then the remove icon is not scrolling. I get 5 remove icons which are comming out of the box. Have a look at the screenshot.

Running on Firefox

[img]http://i45.tinypic.com/14m9w1w.png[/img]

Edited by anam_funny, 13 May 2012 - 08:12.


#290   RCHobbyAddict

RCHobbyAddict
  • Members
  • 54 posts
  • Real Name:Anam Aggarwal

Posted 13 May 2012 - 18:15

Hello,
I have edited the file to work with Points and Reward system. It is working but some more improvements are needed which I will take some more time.

Additions to language file of checkout.php will be needed as per the points and reward system instructions. All other steps remain the same.
Files covered from points and reward system installation instruction:
catalog/checkout_confirmation.php
catalog/checkout_payment.php
catalog/checkout_process.php

I was unable to make the code compatible with auto update when the "USE POINTS" box was checked, using AJAX. Still working on that.

Attached Files



#291   PiLLaO

PiLLaO
  • Members
  • 159 posts
  • Real Name:Gustavo

Posted 13 May 2012 - 19:34

Find around 752:

  .on('change', 'input[name=shipping]', function(){$.post('checkout.php', 'shipping='+$(this).val()+'&comments='+$('textarea[name=comments]').val(), function(){window.location.href = unescape(window.location.pathname);});})

Add this before that line:

  .on('change', 'input[name^=cart_quantity]', function(){$('form[name=cart_quantity]').submit();})

As written now, if a customer enters a new quantity and hits enter, it will automatically submit the change (without that line of code).

The difference that the extra line of code will make is this: If a customer changes the number and clicks tab, or clicks the mouse anywhere else on the screen directly from the input field, it will also submit the form, the same as if they clicked enter, or clicked the refresh button itself.

Thanks for this code! /smile.png' class='bbc_emoticon' alt=':)' />

Sorry, it still doesn't work in either Safari 5 or Firefox. The page seems to refresh, but the code is not applied.

Yes, in Firefox Discount Code is marked as OK, but order total don't refresh.

Regards!!

#292   PiLLaO

PiLLaO
  • Members
  • 159 posts
  • Real Name:Gustavo

Posted 14 May 2012 - 08:52

Is this code correct to auto-refresh orders total when you add a discount code?

.on('change', 'input[name=discount_code]', function(){$('form[name=cart_quantity]').submit();})

Regards!!

#293   PiLLaO

PiLLaO
  • Members
  • 159 posts
  • Real Name:Gustavo

Posted 14 May 2012 - 11:00

Sorry, I can't edit my previous post...

And this code to show confirm dialog on delete product?

.on('click', '.cartDelete', function(){if (confirm('<?php echo CONFIRM_DELETE ;?>')) {$('form[name=cart_quantity]').submit();}else{return false;}})

Regards!

#294   MiCR0

MiCR0
  • Members
  • 7 posts
  • Real Name:Cliff

Posted 17 May 2012 - 11:26

It would seem I have a problem with the checkout system I do not know if others have this issues and I am trying to trace the problem.

Basicly when you create an account you fill all the information out and then when you then see the checkout page with your shopping cart the address

Shipping Address: and the Billing Address:

have only , in them however if i refresh the page then it fills them in, however if you update your cart the whole session is lost.

#295   MiCR0

MiCR0
  • Members
  • 7 posts
  • Real Name:Cliff

Posted 17 May 2012 - 12:27

I fixed the problem

Checkout.php

Line 583
from
if ('<?php echo $redirect;?>' == 'true') window.location='<?php echo tep_href_link(FILENAME_SHOPPING_CART);?>';
if ('<?php echo $cookie;?>' == 'true') window.location='<?php echo tep_href_link(FILENAME_COOKIE_USAGE);?>';
if ('<?php echo $refresh_checkout;?>' == 'true') window.location='<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL');?>';
if ('<?php echo $refresh_checkout_error;?>' == 'true') window.location='<?php echo $re_error;?>';

to

if ('<?php echo $redirect;?>' == '1') window.location='<?php echo tep_href_link(FILENAME_SHOPPING_CART);?>';
if ('<?php echo $cookie;?>' == '1') window.location='<?php echo tep_href_link(FILENAME_COOKIE_USAGE);?>';
if ('<?php echo $refresh_checkout;?>' == '1') window.location='<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL');?>';
if ('<?php echo $refresh_checkout_error;?>' == '1') window.location='<?php echo $re_error;?>';

#296   MiCR0

MiCR0
  • Members
  • 7 posts
  • Real Name:Cliff

Posted 17 May 2012 - 12:33

grrr now problems with it dropping the cart on IE /sad.png' class='bbc_emoticon' alt=':(' />

#297   RCHobbyAddict

RCHobbyAddict
  • Members
  • 54 posts
  • Real Name:Anam Aggarwal

Posted 18 May 2012 - 18:16

I am also facing the problem. The problem is occuring even when a customer signs into his account. If a cart is created without signing in, and when he signs in for checkout, the cart is deleted.

#298   surrfman

surrfman
  • Members
  • 363 posts
  • Real Name:Timmy C
  • Gender:Male
  • Location:Great State of Michigan

Posted 18 May 2012 - 19:46

anyone lucky getting the contribution to work?

Timmy C

#299   PiLLaO

PiLLaO
  • Members
  • 159 posts
  • Real Name:Gustavo

Posted 19 May 2012 - 08:20

maybe was already discussed the topic.
In any case, I found a bug
when buying something as a guest and select the payment method is out of this bad error.

http://simplecheckou...om/checkout.php

Fatal error: Can not redeclare class payment in / home/oscbyj5/public_html/simplecheckout/includes/classes/payment.php on line 13
would be good to make a payment default?
I apologize if it has already been dealt with.
I report because I did not find any notes in add-ons

When you using a guest account or a customer account, if you don't choose any payment method and push continue... Shows this error.

#300   rikic

rikic
  • Members
  • 30 posts
  • Real Name:riccardo
  • Gender:Male
  • Location:Rome

Posted 20 May 2012 - 12:29

hi to everybody and thank you very much for your great job jetta!

I've installed the contribution and it seems working great.
I'd like to do some changes but I don't get them:
1 - I'd to pass directy from shopping cart to checkout page, including the account modules inside. it will reduce the numbers of click in the buying process. Someone know how to do that?
2 - when I add some item product in checkuot page and the "out of stock" error appears, it doesn't write the "out_of_stock_cant_checkout" message. how I can fix it?
3 - clicking on the buttons, the text is trasformed in uppercase style. how I can change it? I don't want to trasform it.

thank you very much!
riccardo