Welcome, Guest. Please login or register.
August 20, 2008, 05:28:51 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) veröffentlicht!
Nähere Informationen findet ihr hier.
Das Diskussionsboard findet ihr hier.
60556 Posts in 9791 Topics by 5824 Members
Latest Member: blubb
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules
| | |-+  New shopping module
Pages: [1] 2 3 Go Down Print
Author Topic: New shopping module  (Read 10666 times)
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« on: August 12, 2007, 06:00:36 PM »

So, after a lot of people asking in here for an onlineshop module, I decided to code one.

This is the first absolute alpha release and still doesn't run correctly in some point. especially:
  • standard lang is nl to be changed to uk
  • include langfile de
  • error on linking, looks for view.php which is not needed, but internal preview from /admin works
  • error on logout, file inclusion missing
  • missing "back to admin" button at end of installation routine
  • install.php and FreeWebshop.sql are not unlinked at
  • folder permissions for orders and images has to be set to 777 in install.php
  • including menues does not work

For this shop in original has no table prefixing, I had to rewrite a lot of code.
To all developers, please test the shop to find more errors and get it to the next level which would be somthing like "working"  rolleyes
The module is originally based on http://www.freewebshop.org and, when finished should have the same installation manner as the old SMF Forum.

Greetings from belgium, Sascha
« Last Edit: August 12, 2007, 07:22:34 PM by saschas » Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #1 on: August 12, 2007, 07:27:04 PM »

o.k., next step. version 0.3Alpha

I solved:
  • standard lang is uk now
  • added german language files
  • linking works
  • logout error works (at least it worked on my localhost)
  • added back to admin and goto shop links
  • added folder permissions
  • including menus still does not work

More to come, Sascha
« Last Edit: August 16, 2007, 08:20:30 PM by saschas » Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #2 on: August 13, 2007, 11:06:20 AM »

Next TODOS:

WB specific:
  • Put the WB menu in top of the theme or add a link back to WB
  • use the Captcha of WB to get rid of filesize
  • use the WB editor to get rid of filesize

FreeWebShop specific:
  • add template upload
  • ??add template editor??
  • ??add language editor??

IF you tested the shop, please report buggs only here

Greetings from belgium, Sascha
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« Reply #3 on: August 14, 2007, 03:18:29 PM »

This looks very promising, Sascha, so keep going!

Installation is flawless. After playing around a little I encountered only one error:
Code:
Table 'wb.payment' doesn't exist


But it surely wil be a valuable addition to WB if it works.

Regards, en zet 'm op  wink

Vincent
« Last Edit: August 14, 2007, 03:25:44 PM by Vincent » Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #4 on: August 14, 2007, 04:45:37 PM »

After playing around a little I encountered only one error:
Code:
Table 'wb.payment' doesn't exist
Vincent

Hi Vincent, thanks for your feedback.
Could you please specivy where exactly that error occured??
This happens cause I forgot to add the tableprefixing in one of the files.

Greetings from belgium, Sascha
Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #5 on: August 14, 2007, 05:06:22 PM »

AHHHH found the error, complete forgot to add tableprefixing to the payment table.

Here the new release with bugfixes.
For those who want to change things by hand:
1) replace `payment` in /fws by `".TBL_PREV."payment` please watchout that you have "casesensitive" checked cause there are also some fieldnames called `PAYMENT`.
2) in checkout.php replace in line 59 `".TBL_PREV."shipping` by `SHIPPING` cause thats a fieldname not a table.

Greetings from belgium, sascha 

« Last Edit: August 18, 2007, 02:09:51 PM by saschas » Logged
DGEC
Master Baker
*****
Offline Offline

Posts: 382


WWW
« Reply #6 on: August 14, 2007, 07:07:55 PM »

For this shop in original has no table prefixing, I had to rewrite a lot of code.
.......
The module is originally based on http://www.freewebshop.org and, when finished should have the same installation manner as the old SMF Forum.

Thanks so much for working on this. 

- Er, how is the installation method different from normal modules, exactly?

(I haven't had a chance to install and look through it yet, so I hope these aren't stupid questions.)

- By no table prefixing, do you mean you changed the nice, clean CSS-only code to use tables?Huh

- Also, which version of the FWS did you use? There's a new one that is almost out now, with some useful changes.
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« Reply #7 on: August 14, 2007, 07:15:47 PM »

@DGEC: normal install procedure thopugh WB admin interface. Works like a charm.

- Only the content uses tables, it looks pretty clean to me.
- it look like it's a brand new version, the changelog says 10-8-07.

@Sascha:
Yeh, that did the trick.
I guess we'll have to do some more testing to see what problems may come up.

Regards, and thanks for now,

Vincent
« Last Edit: August 14, 2007, 07:21:00 PM by Vincent » Logged
tomhung
Master Baker
*****
Offline Offline

Posts: 354


cave_crickett@hotmail.com cave+crickett gbosen
Email
« Reply #8 on: August 14, 2007, 07:52:06 PM »

What is needed to wrap this in the WB template?
Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #9 on: August 14, 2007, 09:16:51 PM »

- Er, how is the installation method different from normal modules, exactly?
Normal modules (WB coded) have a view.php and are displayed within WB. You only need one WB internal setup an the module works. FWS has 2 install procedures, one to integrate it with a link into WB, second FWS installation itself.
- By no table prefixing, do you mean you changed the nice, clean CSS-only code to use tables?Huh
No, FWS templating is as provided by the software itself. But on FWS installation there is was no possibility to add prefixes to the mysql tables itself, but for the integration itself I needed the TABLE_PREFIX from config.php + somethin like "_mod_freewebshop" for a clean integration.
- Also, which version of the FWS did you use? There's a new one that is almost out now, with some useful changes.
It's the latest 2.2.6 WIP 2, WIP3 will come end of the month and will be upgrated then.

What is needed to wrap this in the WB template?
Freewebshop as punBB and SMF Forum can't be that easy wrapped into WB, they allways will stay as separate software. This is because it is not a WB coded module that uses a lot of _GET _POST stuff that might cause colitions with the WB code. The team that coded SMF had the same problems.
If you want to wrap this into your WB, try a normal installation and use the wrapper module to integrate it. But eaven that might cause problems.

Thx for the feedback, Sascha
Logged
DGEC
Master Baker
*****
Offline Offline

Posts: 382


WWW
« Reply #10 on: August 14, 2007, 11:25:34 PM »

Ah! Got it now. Can't wait to try it out  grin
Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #11 on: August 15, 2007, 12:10:13 AM »

o.k, tested a little bit more to get on with my TODO's

WB specific:
  • Put the WB menu in top of the theme or add a link back to WB
  • use the Captcha of WB to get rid of filesize
  • use the WB editor to get rid of filesize
1) still to do but this is just a templating question
2) impossible or yust with imense codeing wich would makes updating harder
3) same as 2) => other configuration coding is used

FreeWebShop specific:
  • add template upload
  • ??add template editor??
  • ??add language editor??
Will come later after debugging is done with the official FWS releases.

Greetings from belgium, Sascha
Logged
chaozz
Pending Apprentice Baker
**
Offline Offline

Posts: 2


Email
« Reply #12 on: August 15, 2007, 08:59:31 AM »

It's chaozz, the programmer of FreeWebshop.org. I just wanted to say that if you guys need any help, I'm more then willing to assist. Further more I wanted to say that 2.2.6 WIP_build3 is out. It's not the last WIP for the final I think, but this version is pretty close to the final release.

The main changes to build2 are template related. I've added an extra template just to show how easy the shop can be changed in appearance.

Good luck with the WB module.
Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #13 on: August 16, 2007, 12:12:47 AM »

Found another bug wich will be fixed with the next release wich will include FreeWebShop2.2.6WIP3

in /modules/freewebshop/fws/errorlogadmin.php I missed to add Tableprefix (yes, again)

There are 2 sql statement where you have to `".TBL_PREV."errorlog` instead of `errorlog`.

Greetings, Sascha
Logged
escpro
Almost Master Baker
*****
Offline Offline

Posts: 247


schau ma moi

admin@club-38.de
WWW
« Reply #14 on: August 17, 2007, 07:16:10 PM »

 grin
hi saschas very nice
Logged

saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #15 on: August 18, 2007, 02:12:47 PM »

New Update available

This one includes Freewebshop 2.2.6 WIP3 + german language files + inclusion of WB_menu in topmenu and header.

Greetings from belgium
« Last Edit: August 18, 2007, 06:46:04 PM by saschas » Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #16 on: August 18, 2007, 06:34:30 PM »

Stupid me, one error in /freewebshop/fws/tamplates/default/template.html
on line 50 there is an undefined function I wanted to use at first called wb_menu() its obsolete, please delete that line.

Greetings from belgium, Sascha
Logged
saschas
Pending Apprentice Baker
**
Offline Offline

Posts: 41



« Reply #17 on: August 18, 2007, 06:47:53 PM »

O.k., fixed the template error for /default and another bug in topmenu.php

Greetings, Sascha
Logged
Bramus
Master Baker
*****
Online Online

Posts: 263


info@bramus.nl
WWW Email
« Reply #18 on: August 18, 2007, 08:08:17 PM »

I did install this module on IIS6 + PHP5.2 and i can't configure it. Guess it is something with unix paths or something? I'm getting this error:

Code:
Error: Couldn find includes\settings.inc.php

The file excists
Code:
Make sure http://cs-panel.bramus.nl/modules/freewebshop/fws/includes/settings.inc.php is chmodded to 777

What could be wrong?

Ok after checking the install.php myself i found out that something is not working with IIS. I did change the following:
Code:
Line: 119 find:         $filename = " /includes/settings.inc.php";

Change too

        $filename = "C:\\Path\\To\\The\\File\\settings.inc.php";

So use two backslashes as needed in php and then this error is working. Maybe use the $filename also from a variable from the config.php? so you get the relative path and not the web path?

And i think this is for all the php files that are being used, editing main page isnt possible. So i guess there is a lot to change to get it to work @ IIS. it says the file main.txt (for example) isn't writeable while the rights are 777 (full) for the IUSR_<server> (about the same error as with install).

Hope you can fix this cause there are also people who are running on IIS or something Smiley
« Last Edit: August 18, 2007, 08:35:22 PM by Bramus » Logged

BRAMUS.NL Internet Services
Webhosting - Domainnames - Webdesign
WebsiteBaker Supported on Linux with DirectAdmin!
DGEC
Master Baker
*****
Offline Offline

Posts: 382


WWW
« Reply #19 on: August 20, 2007, 11:33:15 PM »

After doing the install and going to the page, doing the setup (except for the SMTP server) I get errors in the menu, it looks like. 

At the top of the page, I get:

Code:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
  in /home/example.com/public_html/wbfolder/modules/freewebshop/fws/templates/default/template.html on line 23

Then the logon & slogan, then

Code:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
   in /home/example.com/public_html/wbfolder/modules/freewebshop/fws/topmenu.php on line 7

This is wb 2.6.5 and Menu2 installed. (Redhat & PHP4.x if it makes any difference)

It could be another database table prefix issue - does it always read the actual database resource from the config file or does it assume the URL and datbase path are the same?

In my case, example.com is not the site address, it's wbfolder.com.  I.e. the true URL is a subdomain of wbfolder.examples.com and is mapped to wbfolder.com so it can't assume anything!
Logged
Pages: [1] 2 3 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!