Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 79
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 86
Total: 86

Author Topic: Another error using the Alternative PayPall Address  (Read 2133 times)

0 Members and 1 Guest are viewing this topic.

Offline KKOG

  • Member
  • *
  • Posts: 47
    • View Profile
Another error using the Alternative PayPall Address
« on: February 01, 2021, 05:37:51 am »
Hi,

I have found another bug in the store software when using the Alternative PayPal Address to force a "Buy Now" option.

Using this option applies a Shipping Condition where the condition is based on Weight criteria even though the "Requires Shipping" option has not been ticked.  I have applied the previous workaround that overcomes the application of a Shipping Condition which s based on a $ or cost condition.

To overcome this we have had to revert back to the use of the cart.

Regards
Greg Ralph
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #1 on: February 01, 2021, 01:16:54 pm »
Try this hotfix
Open Sources/Store2.php
In function CreatePayPalButton($basketid)
Find
Code: [Select]
// Lookup the item information

$dbresult = $smcFunc['db_query']('', "
SELECT
subscribe_cycle_times, subscribe_cycle_duration, subscribe_cycle_type,
second_paypal, productname
FROM {db_prefix}store_item
WHERE ID_ITEM = " . $cartRow['ID_ITEM'] );
$itemRow = $smcFunc['db_fetch_assoc']($dbresult);
$smcFunc['db_free_result']($dbresult);

if (!empty($itemRow['second_paypal']))
$business = $itemRow['second_paypal'];

Change to

Code: [Select]
// Lookup the item information

$dbresult = $smcFunc['db_query']('', "
SELECT
subscribe_cycle_times, subscribe_cycle_duration, subscribe_cycle_type,
second_paypal, productname, requireshipping
FROM {db_prefix}store_item
WHERE ID_ITEM = " . $cartRow['ID_ITEM'] );
$itemRow = $smcFunc['db_fetch_assoc']($dbresult);
$smcFunc['db_free_result']($dbresult);

if (!empty($itemRow['second_paypal']))
$business = $itemRow['second_paypal'];

if ($itemRow['requireshipping'] == 0)
$basketRow['totalshipping'] = 0;
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline KKOG

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #2 on: February 01, 2021, 05:52:06 pm »
Hi,

Thanks for the hotfix.

Will this be added to a new release of the Store system?

Another workaround was to set the weight criteria to be between 0.01kg and 5.00kg instead of between 0.0kg and 5.0kg.

Cheers
Greg Ralph
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #3 on: February 01, 2021, 06:33:54 pm »
Yes it will be if it works for you.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline KKOG

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #4 on: February 01, 2021, 06:51:24 pm »
Have tested the Hotfix with weight condition starting with 0 and the shipping condition value is still added to the price on "Buy Now" using alternate PayPal address

Cheers
Greg

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #5 on: February 01, 2021, 07:08:45 pm »
Can you take a screenshot of your shipping settings and your item settings that has this issue.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline KKOG

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #6 on: February 01, 2021, 07:33:04 pm »
Hi,

Attached is the screenshot

[ Guests cannot view attachments ]

The offending condition is the between 0.00 and 5.00 kgs condition

Cheers

BTW what is the image attachment mod that you are using?
« Last Edit: February 01, 2021, 07:35:09 pm by KKOG »

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4357 Views
Last post November 18, 2007, 07:52:05 pm
by SMFHacks
0 Replies
3948 Views
Last post September 03, 2008, 02:14:05 pm
by MS7XWDC
5 Replies
5590 Views
Last post July 13, 2009, 10:44:30 pm
by SMFHacks
8 Replies
10849 Views
Last post December 23, 2013, 05:09:47 pm
by SMFHacks
0 Replies
2344 Views
Last post August 15, 2015, 01:45:02 pm
by hudumapoa

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

Powered by EzPortal