X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   How to bulk change the price of ALL product (https://forum.x-cart.com/showthread.php?t=68664)

cheap eyeglasses 02-04-2020 01:42 AM

Re: How to bulk change the price of ALL product
 
Remember to backup your database first before you run any mysql commands.

cflsystems 02-04-2020 04:08 AM

Re: How to bulk change the price of ALL product
 
I don't know what to tell you but it looks like you are missing something. I would guess the files did not upload correctly to the server. The output you posted starts with


* @copyright Copyright (c) 2


which is not how it should be.
The file has to start with <?php

voodoo1967 02-04-2020 06:36 AM

Re: How to bulk change the price of ALL product
 
The only place where there is that string ie * @copyright Copyright (c) 2 is in the install and uninstall .sql files. I ran the uninstall sql then ran the install script.

Deleted the upload files and re uploaded them again and double checked the files that needed to be edited. All exactly as per instructions.

So Im giving up - the time spent on this I could have done it manually (I have the global product options module) - by changing the price product option into a global option and then changing the appropriate products to use that global option group.

cflsystems 02-04-2020 09:59 AM

Re: How to bulk change the price of ALL product
 
Quote:

Originally Posted by voodoo1967
The only place where there is that string ie * @copyright Copyright (c) 2 is in the install and uninstall .sql files.





That's not the case. I don't know where you got the installation pack from but this and other php doc lines are at the top of every file within the installation pack. If you are checking the file son the server and not seeing them then your upload is incorrect

voodoo1967 02-04-2020 10:34 AM

Re: How to bulk change the price of ALL product
 
Apologies Steve - you are correct - there was an error in my search
All the module files have "{* vim: set ts=2 sw=2 sts=2 et: *}

{**
* Products Bulk Prices Module
*
* @category X-Cart Classic Module
* @author CFL Systems, Inc. <support@cflsystems.com>
* @copyright Copyright (c) 2015 CFL Systems, Inc. All rights reserved.
" etc etc
I got the install pack from cfl (I previously purchased it) but I think during an upgrade it was missed - so I re downloaded it yesterday order #12968

So not sure how or what's up with it. I backed out the changes, re uploaded the files again and edited the various files etc done in notepad++ , cleared the xcart cache but got the exact same result

cflsystems 02-04-2020 11:30 AM

Re: How to bulk change the price of ALL product
 
What you are quoting now is from a template file. Previous output was from php file.
What you are seeing in the browser is the php file not the template file

illinismitty 02-04-2020 01:03 PM

Re: How to bulk change the price of ALL product
 
I hate the bulk edit in xcart 5. It's far too limited for those of us that do not code. They went backwards on this one.

voodoo1967 02-04-2020 02:19 PM

Re: How to bulk change the price of ALL product
 
It's ok Steve - Ive given up, I only have a few products that need updating - so will do it via global product options module instead. We have decided to probably migrate everything to ecwid once we have a spare weekend.
xcart has become too much of a bind to us. And the time spent on things like this means we arent focusing on trying to grow sales.


All times are GMT -8. The time now is 09:16 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.