vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Coding my own Shop - Need help with items... (https://vborg.vbsupport.ru/showthread.php?t=46818)

Chris M 12-19-2002 11:00 PM

Coding my own Shop - Need help with items...
 
As of now, I have a fully operational admin script, and a partially completed shop script...

I say partialy completed, because each store is going to be hand-coded, and that will take time...

I need help with automating the script, so that the item they are purchasing gets entered into their user item's list (useritems) in the user table...

The variable for the item name is $name...

How would I make it insert the item, but not overwrite any previous data, and make sure there is some sort of distinction between Items, like a comma or something...

Satan

Chris M 12-20-2002 08:10 AM

:confused: Nobody want to help me?:(:cry:

Satan

Ember 12-20-2002 01:16 PM

I have very basic knowledge of php and SQL, but basically you want to read the data, and the new piece onto the end, and then re-instert it... but you already knew that. Hope someone else can help more than me :)

Or what you COULD do, is have a field for every item in the member table, and when they buy it change it from "no" to "yes", and then when displaying the image, you could just say list from XXX fields where item = yes. Just an idea.

Chris M 12-20-2002 01:30 PM

I don't know if I'm going to have images - The stores are going to be quite big;)

Unfortunately, due to the size of the shops, I doubt I could have a field in the user table for every single item:(

Satan

Ember 12-20-2002 01:47 PM

Hmm, well... I wouldnt do it having a field with all their items in it, I think it poses to many problems. but it would make expansion, ie adding new items to the store, easier... its just making it work!

Chris M 12-20-2002 06:52 PM

Ah:)

Shop finished!:)

With help from NTLDR, I managed to figure out how to insert a value into the Database and add a comma and space between items;):)

Satan

NTLDR 12-20-2002 07:06 PM

*lool* After much confussion good to see it finished :D

Ember 12-21-2002 01:36 AM

Cool! So how much longer til we get a release? Or is it virtually ready to go?

Chris M 12-21-2002 06:22 AM

@OrangeCow - I don't know that I am going to release;)

Its taken a bit of time, and it still isn't tweaked to my satisfaction...

Thanks NTLDR - This part of it is finally done yes!:)

Like I said - I may not release, or I may update bits etc and release it;)

:)

Satan

DrkFusion 12-21-2002 03:51 PM

Where is the url to your shop? Is it active on your site yet?


All times are GMT. The time now is 09:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01059 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete