BuyItSellIt Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Add PHP Include for Links? Is there FTP... Expand / Collapse
Author
Message
Posted 10/25/2009 8:48:21 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 11/9/2009 3:44:34 PM
Posts: 64, Visits: 169
Seems it makes sense to create an include for the links section (and probably the entire header w. images, etc.) so I don't have to add / remove links from each page when they need to be updated. I noticed that when I changed the view cart button on the home page, the other pages still had the old button. An include would change that.

Can I create the include and upload it to my custom files area, then use a regular php include on my custom template pages?

Example:


Is there a way to create directories in the custom files area or use ftp?

Is there code available so that I can display product on the product listing page like this:

Product
Product
Product

Instead of like this:

Product Product Product

Also, is there code to display add to cart buttons on the product list page instead of only on the product detail page?



Post #51451
Posted 10/26/2009 12:14:08 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 7:27:22 PM
Posts: 2,498, Visits: 3,536
Im not familiar with that "include" function, but it sounds like it would be great. Why not go ahead and try seeing if it works.

As for laying things out differently... you seem to know what you are doing with HTML/css. And, try searching the webs for free templates, etc. They will NOT work directly, but you can get the formatting code and swap it in to your templates here.

Im not sure what is involved in adding the add to cart button. But why not just try doing it? Just copy and paste the code to the list page, and alter it as needed (to capture the the correct variable names).



Cindy
-----------------
Search & Win
Post #51485
Posted 10/27/2009 5:17:43 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 11/9/2009 3:44:34 PM
Posts: 64, Visits: 169
Can you chime in on this one Thomas? Is there a workaround?

I tried uploading a couple of php files into my custom file area which the system rejected. I wanted to add an include on my home page, as well as all my other pages with this code:



What I'm trying to achieve is first, a drop-down mailform box so customers can select a delivery date and time like this:



We only deliver locally. I'm not exactly sure how the variables will transmit to me - possibly only a simple email. I'll have to include their delivery street address and match it up with their actual order when it comes through the system. Otherwise, I need to capture those variables ("delivery_time" and "delivery_date" and somehow add them to the order email. I'm wondering if the form could even be hard-coded on the home page.

The other issue is simply being able to add an include for the header and footer w/ their navigation links.

Here is the code for the drop-down form:




One other item: How do I post code in the forum? I tried using
 but didn't seem to work. As you can see, I have been posting screen shots for my code.

Post #51561
Posted 10/27/2009 6:43:58 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 11/9/2009 3:44:34 PM
Posts: 64, Visits: 169
I've managed to position the draft of the set delivery drop-down - but seems that the php code in the form that automatically pulls and displays the date selections from the server do not work. The delivery time selections work because those are hard-coded into the form.

You can see it here:

http://giftsunderfivebucks.mybisi.com/
Post #51571
Posted 10/28/2009 8:45:17 AM


BISI Admin

BISI Admin

Group: Administrators
Last Login: Today @ 6:35:59 PM
Posts: 2,976, Visits: 8,608
For security reasons, we do not offer server side scripting (ie: PHP) or server-side includes.

If you have an external hosting account that supports PHP, you can always set up some ajax scripts to perform your drop downs.

---------------------
Tomas

Follow BISI on twitter!
Post #51588
Posted 10/28/2009 10:55:39 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 11/9/2009 3:44:34 PM
Posts: 64, Visits: 169
I've never used ajax before - seems there's always something new to tackle!

Are you saying I could use an ajax script to call an include and have that include appear on the page? If the include were not php, then I could upload it into the custom file area correct? Or would it still have to be hosted someplace else? I would think include items like navigation wouldn't have to be php. Except for items like my drop-down example where the php code calls the dates from the server. If there were another way to dynamically pull dates for the form I would use it.

Could you post a sample of what ajax code might look like calling an include - or point me in the right direction in terms of a reference. There are so many tutorials on ajax, I'm not even sure what I'm looking for!

Seems it would be beneficial to have the BISI system have a template in place for things like navigation, footer, header, (or even be able to create your own) etc. so you only need to update it in one place instead of each page.

I'm just feeling my way around and testing the system right now, but I really like it. I have a couple of other websites I'm sure I will move over if I can get a handle on it. Seems the ajax concept can really expand the capabilities of the BISI system in terms of being able to work with includes.

Post #51596
Posted 10/28/2009 11:38:47 AM


BISI Admin

BISI Admin

Group: Administrators
Last Login: Today @ 6:35:59 PM
Posts: 2,976, Visits: 8,608
Looking at your PHP, it looks like you could do this with just straight javascript with no server-side coding needed. If I get a chance, I'll try to come up with some sample code. Do you have a working example of this somewhere?

I agree, having the ability to reference a file or template would be beneficial. We'll look at adding something like this in the near future.

---------------------
Tomas

Follow BISI on twitter!
Post #51598
Posted 10/28/2009 2:06:54 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 11/9/2009 3:44:34 PM
Posts: 64, Visits: 169
Do you have a working example of this somewhere?


As mentioned, the set delivery idea is still being worked out in my tiny little mind. Originally, the variables were supposed to be sent along with the order when we were experimenting with ZenCart. But I have switched gears for the moment after finding BISI.

Now I'm thinking that maybe the variables could be sent somehow as if they were a product with options in the BISI system - data that is "camouflaged" as a product so to speak (since we don't have access to the actual DB to add fields, etc.).

After reading several posts about local delivery issues, seems like this might be a great add-on / contribution when completed.

In terms of being able to access an include, is the ajax idea still viable? Would love to be able to use a template concept if possible.
Post #51603
« Prev Topic | Next Topic »


All times are GMT -8:00, Time now is 7:29pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 9 queries. Compression Disabled.