PDA

View Full Version : Customizing Store.php/General Questions


seirraheat
October 24th, 2003, 02:34 PM
First of all, let me just say how excited I've been to get this cart up and running.. it is VERY easy to use and its been a blast setting it up :). Had a few stumbles, but I was able to get past them. Now.. two questions :).

1. I am modifying the appearence of store.php to better incorporate it into my current website. How can I rearrange the order that things, such as the "Best Seller - New Products - and Product Catagories" show up? And.. how would I take one OUT if I didn't want it? The Best Seller isn't one I'd really care to have there. Thanks.

2. I'm not sure about this one.. but it concerns the copyright info at the bottom. It sorta sticks out as an eyesore with MY footer.php right below it containing my info.. Could I include something like "Shopping cart copyright *blah blah blah* and include a link to your site from there? I don't want to get rid of it.. After all, that is how I found your site by using a link on someone else's cart. But what options do we have to better work it into our current pages?

Thanks!

-Jonathan

Jamie
October 24th, 2003, 03:17 PM
Hi,

First of all, let me just say how excited I've been to get this cart up and running.. it is VERY easy to use and its been a blast setting it up . Had a few stumbles, but I was able to get past them.

Thanks! Glad to hear it is working well for you.

1. I am modifying the appearence of store.php to better incorporate it into my current website. How can I rearrange the order that things, such as the "Best Seller - New Products - and Product Catagories" show up? And.. how would I take one OUT if I didn't want it? The Best Seller isn't one I'd really care to have there. Thanks.

The navigation on the left and right of the page is controlled via a built in content management feature. If you check out these 2 tutorials, you should be on your way to removing, moving, or adding content:

http://ldev.com/forums/showthread.php?t=697
http://ldev.com/forums/showthread.php?t=494

The content in the center of the page is controlled by home.php, when someone first accesses your cart page without clicking any links. The code for the best seller can be found at the top of this file:
<tr>
<td class="content">
<?
// Best Seller (Single Item) section
// code below will display your top selling item
show_best_sellers(1, $SESSION['templates']['best_seller_single']);
?>
</td>
</tr>

To remove this feature, you will need to comment it out as follows:

<!--
<tr>
<td class="content">
<?
// Best Seller (Single Item) section
// code below will display your top selling item
// show_best_sellers(1, $SESSION['templates']['best_seller_single']);
?>
</td>
</tr>
-->

Please note that in this case, I used both HTML comments, and a PHP comment "//" in front of the call to the show best sellers function. Without this PHP comment, your page will not look nice. :eek:

2. I'm not sure about this one.. but it concerns the copyright info at the bottom. It sorta sticks out as an eyesore with MY footer.php right below it containing my info.. Could I include something like "Shopping cart copyright *blah blah blah* and include a link to your site from there? I don't want to get rid of it.. After all, that is how I found your site by using a link on someone else's cart. But what options do we have to better work it into our current pages?

We are changing that link in the next version for the very same reason. If you place the attached file in your "squirrelcart/functions" folder, the copyright portion of that message will be gone.

Thanks!
Jamie

seirraheat
October 24th, 2003, 04:26 PM
Thanks! Your advice worked perfectly... For those who would also try it.. He's not kidding about adding the "//" PHP comment.. =). The rest is .css style modification, which I shall figure out 'er long. Thanks for your help Jamie, I am one happy customer :).

-Jonathan