Post by doeme » Fri Jun 09, 2017 3:53 pm

Hi all

I am working on a script to export all products with options to CSV and I'm almost done. The only thing left are the URLs for the images and products.

In the oc_store table I cannot find my default store's (store_id 0) URL. I've tried to find it it on_settings but like in oc_store, the store_id 0's URL is not listed.

It's not a big issue for me, but I would like to share the script and let people use it without editing it, so it would be great to get all those values from the database.

Thanks

Dominik

New member

Posts

Joined
Wed Sep 19, 2012 4:22 am

Post by sdsoftware » Fri Jun 09, 2017 5:06 pm

Hello. Yes I had this issue as well. Unfortunately I think that default's store urls are hard coded on your config files.
admin/config.php and root/config.php.

If you find any other solution please post it here as well.

The solution that worked for me was to add an other field "store's url" on my module's settings and the user had to fill it when enabling the module.
Not sure if that makes sense for your module though.

*One other possible solution is to open and read the config files using PHP file() and strpos()
Last edited by sdsoftware on Fri Jun 09, 2017 5:09 pm, edited 1 time in total.

Software Support And Development www.sdware.eu
Ccookie Module || Admin Category/Manufactory/Attribute Filter || Admin Customizer || Bank Tranfer Extended
Business Inquiries Here
My extensions Page Here


User avatar
New member

Posts

Joined
Mon May 29, 2017 3:37 pm


Post by doeme » Fri Jun 09, 2017 5:08 pm

Thanks @sdsoftware, that's the only way I see so far :(

New member

Posts

Joined
Wed Sep 19, 2012 4:22 am
Who is online

Users browsing this forum: No registered users and 10 guests