Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4301
Latest: Bolon377
New This Month: 9
New This Week: 4
New Today: 1
Stats
Total Posts: 43801
Total Topics: 7605
Most Online Today: 561
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 47
Total: 47

Author Topic: Is there a easy way to change the prices on all store items at once?  (Read 5458 times)

0 Members and 1 Guest are viewing this topic.

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
All the items in our store are the same price except for one item.

I was wondering if there was a easy way to change the prices on all of the store items at one time and then I could just go back and change the price on the one item that is different.

Hope that make sense...

Thanks,

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Re: Is there a easy way to change the prices on all store items at once?
« Reply #1 on: January 21, 2013, 07:20:42 pm »
Yeah you can in the database using this sql command

Code: [Select]
Update smf_store_item SET price = '1.00'

Replace 1.00 withe price
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Is there a easy way to change the prices on all store items at once?
« Reply #2 on: January 21, 2013, 07:23:29 pm »
I have never used a sql command before.

Could you give me a step by step guide?

Thanks,

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Is there a easy way to change the prices on all store items at once?
« Reply #3 on: January 21, 2013, 07:31:05 pm »
Went into phpMyAdmin in cpanel and got to this screen.
Is this were I enter the sql command?
« Last Edit: January 21, 2013, 07:32:51 pm by ApplianceJunk »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Re: Is there a easy way to change the prices on all store items at once?
« Reply #4 on: January 21, 2013, 07:31:11 pm »
Quick guide from SMF.org

you will need a program such as phpMyAdmin, which is used for MySQL database management. Most hosts provide this. If you are unsure of its location, please contact your host for guidance.

When you have successfully entered phpMyAdmin select the correct database from the left.

Then find the SQL tab and runt the query on your database.
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Is there a easy way to change the prices on all store items at once?
« Reply #5 on: January 21, 2013, 07:36:49 pm »
Done!

161 rows affected. ( Query took 0.0022 sec )

That is fricking awesome!

I should have asked before. I went though my store some time ago and manually changed each price from the item edit page, lol...

Thanks,

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Re: Is there a easy way to change the prices on all store items at once?
« Reply #6 on: January 21, 2013, 07:39:29 pm »
Yeah SQL makes everything thing easy. Glad to help.
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/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
7570 Views
Last post January 26, 2007, 09:45:02 am
by SMFHacks
2 Replies
3687 Views
Last post May 21, 2012, 08:54:11 am
by ApplianceJunk
5 Replies
6883 Views
Last post January 15, 2015, 08:11:43 pm
by SMFHacks
2 Replies
1604 Views
Last post July 28, 2021, 04:35:38 pm
by Saftek
4 Replies
722 Views
Last post August 26, 2024, 11:38:33 pm
by Michael Vail

+- Recent Topics

A day? by davejo
June 11, 2025, 04:14:35 pm

Dual 'Upload Url' by davejo
June 06, 2025, 04:27:45 pm

Automatic Sorting of Categories by Kiwi
June 03, 2025, 10:32:32 pm

[Mod]Cloudflare Turnstile for SMF by SMFHacks
May 08, 2025, 10:08:43 am

Disable "Notify me of Comments feature" by Kiwi
May 08, 2025, 02:04:16 am

Trying to access array offset on null by Michel68
May 05, 2025, 08:47:34 am

Default [Additional] Membergroups upon Registration by SMFHacks
April 30, 2025, 10:22:52 am

Sorted FTP Import Directory by SMFHacks
April 25, 2025, 05:11:22 am

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

Powered by EzPortal