Announcement

Collapse
No announcement yet.

Product count.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Product count.

    Does anyone know how I can perfom a product count (and before you say it, without manually counting)?

    I know that a new product gives a new reference number, but that (I'm pretty sure) includes deleted items.

    Thanks

    Cappa

    #2
    export the products to a froogle feed and import them into excell.

    scroll down to find the row number the last record is on and subtract 1

    Comment


      #3
      The following can be put into a Layout and will display the number of products and sections. You may want to put it within a Condition so that it isn't run on every page as this may slow things down if you've lots of products.
      Code:
      <actinic:block php="true">
      $sectioncount = 0;
      $productcount = 0;
      </actinic:block>
      
      <actinic:block type="EntireSectionList" />
      	<actinic:block php="true">
      	$sectioncount++;
      	</actinic:block>
      
      	<actinic:block type="ProductList" />
      		<actinic:block php="true">
      		$productcount++;
      		</actinic:block>
      	</actinic:block>
      
      </actinic:block>
      
      <actinic:block php="true">
      echo "There are $productcount products within $sectioncount sections in the store.";
      </actinic:block>
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thanks guys .. perfect.

        Comment

        Working...
        X