CRE Loaded Community

Banner


Board index » Web Design and Development » Contribution Garage

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: price break, anyone get it to work
PostPosted: Thu Sep 23, 2004 7:36 pm 
Offline
CRE Newbie
User avatar

Joined: Thu Sep 23, 2004 12:00 am
Posts: 11
Location: wayne twp, ohio
Has anyone gotten the price break contrib to work with CRE Loaded. I had no problem putting it on a standard OSC but it is not working at all on the loaded one. Any help appreciated. I would love to use this loaded version as it has some really cool features but my store is totally quantity based pricing and without this mod Im dead in the water. thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 23, 2004 8:40 pm 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
what kind of errors are you getting, and where??

David

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
 Post subject: nothing is happening
PostPosted: Fri Sep 24, 2004 8:29 am 
Offline
CRE Newbie
User avatar

Joined: Thu Sep 23, 2004 12:00 am
Posts: 11
Location: wayne twp, ohio
Thanks for the quick reply, Problem is that im not gettng any errors, just nothing is happening. Leads me to believe that Im not modifying the correct files. The contrib asks you to add a file to the classes folder but Im thinking that with the template setup there is probably an additonal step that i need to add somewhere for the template to grab this new file. Here is a link the the contrib if it helps you, http://www.oscommerce.com/community/contributions,1242.. Please dont ban me for referring to the other site, Im new here and am not sure if we are allowed to discuss these contribs here or not. thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 11:30 am 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
its more likely that you are not applying the changes to the correct files in the template directory. Does the backend work? ie - the admin side of the contribution?

David

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
 Post subject: admin is working
PostPosted: Fri Sep 24, 2004 12:36 pm 
Offline
CRE Newbie
User avatar

Joined: Thu Sep 23, 2004 12:00 am
Posts: 11
Location: wayne twp, ohio
the admin side is working, at least it is drawing the input fields for the different prices so Im sure you are correct Im not modifying the correct files per the template structure. The templates and new file structure are taking some time to get a handle on. Could someone help me out with the paths for these files using the "original" template?

catalog/includes/application_top.php
catalog/includes/classes/shopping_cart.php
catalog/includes/languages/english/product_info.php
catalog/includes/modules/product_listing.php
catalog/index.php
catalog/product_info.php
catalog/stylesheet.css

It is also asking me to insert a file in the catalog/includes/classes folder, is it ok to just add this to the folder or is there some other step involved to add this file and get it called correctly. thanks upfront.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 3:41 pm 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
Quote:
catalog/includes/application_top.php
catalog/includes/classes/shopping_cart.php
catalog/includes/languages/english/product_info.php


Should all be able to have the content from the new contribuiton added directly to them. While they are NOT unchanged, these files have not been split.

From there, it gets tedious. Very worthwhile end results, but tedious.

Quote:
catalog/index.php
is split into 4 modules. The file of the same name sets things up for
Quote:
/catalog/templates/content/index_default.tpl.php
/catalog/templates/content/index_nested.tpl.php

and

/catalog/templages/content/index_products.tpl.php


Each of which does processing under different circumstances. index_default.tpl.php basicly (and I know Tom or Sheetal or someone will correct and expand on this) generates the default mainpage display - at the top level where you have no place higher to go. Index_nested.tpl.php generates the display when you're in the middle of the category tree (ie not at the top, not at the bottom most category, but anywhere in the middle) Index_products.tpl.php generates product displays at the bottom of the category tree where you should have nothing but products.

The advantage is - all the files are smaller, you only load what you need so the site runs more quickly and if you want to make a change at a particular place, you only risk breaking the code in that file - with less code to sort through to find your problem.

The difficulty is in learning what went where, and how to modify it - which is something I hope to address in the Advanced Template System design. (We're a ways out there on that yet, but planning).

Quote:
/catalog/product_info.php
is a bit simpler - it consists of the original file and /catalog/templates/content/product_info.tpl.php[/quote]

By and large, on this file (and most other BTS files) - the *.tpl.php file holds the code usually found near the bottom of the original file - code that generates the actual display. The *.php file will hold sql queries and code that does the actual work of the contribution.

Quote:
/catalog/stylesheet.css


This file is still a bit tricky to decide where to change, but much less so than the others.
Each template file has its own stylesheet.css - located in /catalog/templates/<template_name>. One of the simpler parts of BTS in modifiying catalog side contributions you simply add the new CSS to the stylesheet in each template you plan to use - changing colors and other CSS driven features as needed to make the look and feel match.

Now, I think we have pretty much outlined WHERE to change at least to the file level. Next message should go into a few things INSIDE the files that you will need to look for.

David

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 3:47 pm 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
Ok, next step.

First - create copies of each of the files named above. Just add _pb just before the "." between the core filename and the .tpl.php or .php extension.

These will be the files we edit. I'm going to have a look, choose a file - and start working on some conversion work next. -- BTW - I'll be doing much the same in the "3 Contributions Help" thread in this same forum. Feel free to steal hints from the other thread as I jump back and forth.

David

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
 Post subject: huge thanks
PostPosted: Fri Sep 24, 2004 5:22 pm 
Offline
CRE Newbie
User avatar

Joined: Thu Sep 23, 2004 12:00 am
Posts: 11
Location: wayne twp, ohio
I was just reading about the upcoming new release and I cant believe that you were so busy with such important issues but still took time to help me. I cant thank you enough, Ill try your suggestions and keep at it until I get it or die. Not really but Im determined to wax this thing like a new speed boat. thanks again. Ill post back here when I get it so I can give back and hopefully help some others as you've helped me.


Top
 Profile  
 
 Post subject: ohh yes
PostPosted: Fri Sep 24, 2004 10:56 pm 
Offline
CRE Newbie
User avatar

Joined: Thu Sep 23, 2004 12:00 am
Posts: 11
Location: wayne twp, ohio
can i get a whoot whoot, i got it working for the most part. On my standard version I was able to get the price chart to display on the product listing page as well as the product info page, but hey Im not complaining. Maybe with some sleep it will come to me, what Im missing. Couldnt have done it without help. Mucho Thankso


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 11:38 pm 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
My pleasure. I'm looking forward to seeing it work, when you are ready to post the URL.

David

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
 Post subject: help getting model into price chart
PostPosted: Wed Sep 29, 2004 4:10 pm 
Offline
CRE Newbie
User avatar

Joined: Thu Sep 23, 2004 12:00 am
Posts: 11
Location: wayne twp, ohio
Can someone help me get the model number to display on the price chart. I thought it would be a simple addition of $product_info['products_model'] to the lctext code but that isnt working. any help appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

Board index » Web Design and Development » Contribution Garage

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Thu Feb 09, 2012 4:59 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

Follow Us on Twitter

An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy