1
fastener
Zen Cart Integration: Clone Blocks
  • 2006/6/1 21:03

  • fastener

  • Just popping in

  • Posts: 4

  • Since: 2005/1/25


Hi,
I would like to install several blocks with info from individual zen cart modules. However i see only one zencart block in the blocks section and hence can't use more than one section. The structure is also a bit different and it is not plain html/php that i could copy into a custom block.
Kindly advise on how to clone the block so that i can later modify it to display different content.
Thanks

2
fastener
Re: Zen Cart Integration: Clone Blocks
  • 2006/6/1 21:04

  • fastener

  • Just popping in

  • Posts: 4

  • Since: 2005/1/25


Bump

3
Quest
Re: Zen Cart Integration: Clone Blocks
  • 2006/6/2 2:31

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


This is from wwwcad:
Apparently the Zen Cart Blocks doesn't quite function properly in the XOOPS 2.0x version. Hence, 2.0x version users can't add more than one block at a time.
But there is a work around which he has provided just earlier this evening.
Quote:
Replace in xoopsversion.php
--------------------------
$modversion['blocks'][1]['file'] = "blocks.php";
$modversion['blocks'][1]['name'] = "Zen Cart Blocks";
$modversion['blocks'][1]['description'] = "Zen Cart Blocks";
$modversion['blocks'][1]['show_func'] = "b_shop_blocks";
$modversion['blocks'][1]['edit_func'] = 'b_shop_blocks_edit';
$modversion['blocks'][1]['template'] = 'shop_standard.html';
$modversion['blocks'][1]['options'] = "categories";
--------------------------------

with

---------------------------------
$modversion['blocks'][1]['file'] = "blocks.php";
$modversion['blocks'][1]['name'] = "Zen Cart Blocks";
$modversion['blocks'][1]['description'] = "Zen Cart Blocks";
$modversion['blocks'][1]['show_func'] = "b_shop_blocks";
$modversion['blocks'][1]['edit_func'] = 'b_shop_blocks_edit';
$modversion['blocks'][1]['template'] = 'shop_standard.html';
$modversion['blocks'][1]['options'] = "categories";

$modversion['blocks'][2]['file'] = "blocks.php";
$modversion['blocks'][2]['name'] = "Zen Cart Blocks2";
$modversion['blocks'][2]['description'] = "Zen Cart Blocks2";
$modversion['blocks'][2]['show_func'] = "b_shop_blocks";
$modversion['blocks'][2]['edit_func'] = 'b_shop_blocks_edit';
$modversion['blocks'][2]['template'] = 'shop_standard.html';
$modversion['blocks'][2]['options'] = "categories";
------------------------------------


With this modification you could add two blocks. Add more blocks if you want modifying this file.

Regards


Thanks again wwwcad!

Quest

4
fastener
Re: Zen Cart Integration: Clone Blocks
  • 2006/6/2 12:17

  • fastener

  • Just popping in

  • Posts: 4

  • Since: 2005/1/25


I did exactly as specified, but i still get only one block. It shows only block2 now...checked groups, updated module for zencart and then checked if any new blocks were added. It was negative.
Am i missing something?


// Install things
//$modversion['onInstall'] = 'moduleinstall.php';

// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "xadmin/index.php";
$modversion['adminmenu'] = "xadmin/menu.php";

$modversion['blocks'][1]['file'] = "blocks.php";
$modversion['blocks'][1]['name'] = "Zen Cart Blocks";
$modversion['blocks'][1]['description'] = "Zen Cart Blocks";
$modversion['blocks'][1]['show_func'] = "b_shop_blocks";
$modversion['blocks'][1]['edit_func'] = 'b_shop_blocks_edit';
$modversion['blocks'][1]['template'] = 'shop_standard.html';
$modversion['blocks'][1]['options'] = "categories";


$modversion['blocks'][2]['file'] = "blocks.php";
$modversion['blocks'][2]['name'] = "Zen Cart Blocks2";
$modversion['blocks'][2]['description'] = "Zen Cart Blocks2";
$modversion['blocks'][2]['show_func'] = "b_shop_blocks";
$modversion['blocks'][2]['edit_func'] = 'b_shop_blocks_edit';
$modversion['blocks'][2]['template'] = 'shop_standard.html';
$modversion['blocks'][2]['options'] = "categories";



$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = "Home";
$modversion['sub'][1]['url'] = "index.php";

// Search
$modversion['hasSearch'] = 0;

// Comments
$modversion['hasComments'] = 0;

5
Quest
Re: Zen Cart Integration: Clone Blocks
  • 2006/6/2 15:31

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


OOPS My Bad! I forgot to include:

UPDATE MODULE:

admin/system/modules

then click on the UpDate Module icon on the right.

That should do it.

Let us know.

Quest

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits