Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 3
New Today: 1
Stats
Total Posts: 42791
Total Topics: 7455
Most Online Today: 67
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 58
Total: 58

Author Topic: Another error using the Alternative PayPall Address  (Read 1199 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: 16233
    • 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: 16233
    • 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: 16233
    • 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
3889 Views
Last post November 18, 2007, 07:52:05 pm
by SMFHacks
0 Replies
3229 Views
Last post September 03, 2008, 02:14:05 pm
by MS7XWDC
5 Replies
4657 Views
Last post July 13, 2009, 10:44:30 pm
by SMFHacks
8 Replies
9296 Views
Last post December 23, 2013, 05:09:47 pm
by SMFHacks
0 Replies
1842 Views
Last post August 15, 2015, 01:45:02 pm
by hudumapoa

+- Recent Topics

prettyurls - TroubleShooting.wiki by thatsjustit
March 24, 2023, 07:56:39 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Bulk File Import by SMFHacks
March 08, 2023, 07:56:23 am

Powered by EzPortal