Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mazi

Pioneers
  • Posts

    16
  • Joined

  • Last visited

Posts posted by Mazi

  1. In the all products file, you could change this line

    $listing_sql .= " order by pd.products_name";

    to

    $listing_sql .= " order by p.products_ordered";

    I have tested it but I think it iwill work.

    This works like a charm, Jack. Thanks a lot for your help.

     

    Note that you should add ...DESC at the end of the line to have the best sellers on top of you all products list.

     

    Here is an example of the "Limesurvey Template Shop" where I am using the feature for the "View All Products" list.

  2. Finally this great add-on is available for the 2.3.1 OSC release. Great work, Jack_mcs!

     

    I was wondering if it would be possible to not sort the products at the all_products.php page alphabetically but sort it like the best sellers (most sold products on top). Would that be easy doable by extending the SQL query and adding a different sorting?

     

    I'm no PHP/SQL crack so any advice would be appreciated!

     

    Thanks,

    Mazi

  3. The following fixed "PayPal returned invalid or incomplete data to complete your order. Please try again or select an alternate payment method."

    <       if (!preg_match("([C-E]{2})-([A-Z0-9]{17})", $_SESSION['paypal_ec_token'])) {
    ---
    >       if (!preg_match("/([C-E]{2})-([A-Z0-9]{17})/", $_SESSION['paypal_ec_token'])) {
    

     

    The following fixed "Unfortunately the country of the address you selected is not currently one that we offer service to. If you have any questions, please feel free to contact us." $billing_address is being set to FALSE if no billing address is returned, so the statement will always be true.

    <         if (isset($billing_address)) {
    ---
    >         if (is_array($billing_address) &! empty($billing_address)) {
    

    I just want to confirm that the changes aboved solved the errors mentioned at my 1.0.0 version.

     

    Though no payment details are shown at paypals overview screen and the download doesn't show up after payment. Do you think I should update to the latest Paypal Website Payments Pro version (Link?) ?

  4. I had the same problem when using "PayPal IPN v2.3.4.6" and the "super download store" addons (still testing if they work together without problems at all).

    I could solve the problem by editing the "PayPal IPN v2.3.4.6" settings from transaction type = "aggregate" to "per item". Maybe this helps...

×
×
  • Create New...