AShop V Guía de usuario Pagina 23

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 309
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 22
Installation & Setup 23
AShop Software © Copyright 2002 - 2010
This will show only the customer profile links:
<?php
// Show shopping cart buttons...
$layout = 6;
include "includes/topform.inc.php";
?>
Displaying the product list or search results
The catalogue.php script shows the list of products for a selected category while the search.php script
shows the results of a search. They can either be used standalone or as part of a modular storefront
script. To use them in a storefront script add the following code:
<?php
// Show product list or search results...
$topform = "off";
$categories = "off";
if($searchstring) {
$search = "index.php";
include "search.php";
} else {
$catalog = "index.php";
include "catalogue.php";
}
?>
By adding the line: $topform = "off", the output will not include a box at the top of the list, with a search
field, the subtotal of the shopping cart contents and the View Cart/Checkout buttons.
By adding the line: $categories = "off", the output will not include a categories list to the left of the
products/search results. Use this if you want to place the categories using the categories list module
instead.
The $search parameter must be set to the filename of the script that shows the search results and the
$catalog parameter must be set to the filename of the script that shows the product list. Both should be
set to "index.php" when you use the default storefront script.
Using Custom Modules
The storefront script can of course show any other module or dynamic content you want to use. As an
example of this the default index.php script includes a SimplePie RSS reader, which can show news
feeds from an external site or even article links from your own blog. This is the code that runs this script:
<?php
// Demonstrates how to include a news feed reader on your storefront...
$feedurl = "http://www.ecommercetimes.com/perl/syndication/rssfull.pl";
include "includes/simplepie.inc.php";
$feed = new SimplePie();
$feed->set_cache_location("./updates");
$feed->set_feed_url($feedurl);
$feed->init();
if ($feed->data) {
$items = $feed->get_items(0,5);
foreach($items as $item) echo " &nbsp;<img src=\"images/bullet.
Vista de pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 308 309

Comentarios a estos manuales

Vikijrd 04 Jan 2024 | 12:14:20

urenrjrjkvnm

Evakut 07 Jan 2024 | 15:14:48

Med

BryanBag 07 Apr 2024 | 22:32:20

Hello! Crazy discounts, hurry up! We are Drop Dead Studio and our goal is to help companies achieve impressive sales results through automated marketing. I. We sell fresh databases for GSA Search Engine Ranker. • The databases are updated monthly through 24/7 parsing and by connecting purchased databases from other sources. • You have the option to purchase a one-time fresh database or pay for a lifetime subscription for updates. ATTENTION! 40% discount only until 04/10/2024! When ap

BryanBag 12 May 2024 | 18:31:28

Want to improve your SEO rankings and save time? Our premium databases for XRumer and GSA Search Engine Ranker are just what you need! What do our databases include? • Active links: Get access to constantly updated lists of active links from profiles, posts, forums, guestbooks, blogs, and more. No more wasting time on dead links! • Verified and identified links: Our premium databases for GSA Search Engine Ranker include verified and identified links, categorized by search engines. This mea