Search found 139 matches

Search found 139 matches

Pass setting in admin>featured.tpl to user>featured.tpl

In admin>featured.tpl, I added a new setting "show rating", its variable looks like $module['show_rating']. This variable is at module level. Variables used in user>featured.tpl are at product level. Now I need to pass $module['show_rating'] to user>featured.tpl to show/hide ratings for all products...

Jump to post
  • Thu May 10, 2012 2:56 am
  • Replies 1
  • Views 165
Add a column to admin>featured

In admin>featured.tpl, I add a column "Show rating" for each [featured] with value yes/no. So interface of [featured] looks like: Limit: | Image (W x H): | Layout: | Position: | Status: | Show rating: |Sort Order: I want read/save the extra column from/to db at same place (files) as OC does. But I c...

Jump to post
  • Tue May 08, 2012 11:53 pm
  • Replies 2
  • Views 216
Re: Which function receives the event?

Hi avvici ,

Thanks.

I simulate your code in this way in a simple html file (test.htm), but nothing happens when click:

Code: Select all

<div>
	<a  style="background:#CCC;" onclick="$('#form').submit();">Go to</a>
</div>
<form action="good.htm" method="post" id="form">
</form>
I don't know why, please help.


.

Jump to post
  • Tue May 08, 2012 4:33 am
  • Replies 3
  • Views 190
Which function receives the event?

Hi friends,

In admin/..../featured.tpl, I see the line:

Code: Select all

<a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a>
I can't find its onclick-related JavaScript function, Please help.

Thanks.


.

Jump to post
  • Tue May 08, 2012 2:43 am
  • Replies 3
  • Views 190
Re: May I offer my menu to OC?

straightlight,

I like this 30-days way.
Do I need to create a "demo" site?
How do we share?

I think you may have a policy-doc for this, I want to have a look.

Thanks.

.

Jump to post
  • Mon May 07, 2012 8:16 pm
  • Replies 8
  • Views 618
Re: php request and config

Hi avvici, Thanks for the link. I realized that 2 instances of same class may have different class members in php and class variables can be added without being defined. As a c++ programmer, I'd like to say that php is "make up" language other than "OO" language now. Following is a piece of code, wh...

Jump to post
  • Mon May 07, 2012 8:02 pm
  • Replies 7
  • Views 1554
Re: May I offer my menu to OC?

Hi straightlight,

Thanks for your replies.

How do I share the little $$$ with OC?
Does buyer pay to me or OC directly? - I don't have time to check the little $$$ every day, I hope OC deals with it if sharing.


.

Jump to post
  • Mon May 07, 2012 12:13 am
  • Replies 8
  • Views 618
Re: php request and config

Hi pprmkr, Thanks, I find clue from your reply. :laugh: Not to difficult to understand, because it's clean OOP. It's too hard for me, because I am a C++ programmer. I read class hierarchy: abstract class Controller { ... } class ControllerModuleFeatured extends Controller { ... } request is not defi...

Jump to post
  • Sun May 06, 2012 11:57 pm
  • Replies 7
  • Views 1554
Database featured_module

Hi friends, Data are changed in table [setting] of OC database when I added 3 and 4 [Featured]. Followings are data values, where (group)=featured, (key)=featured_module (Featured count = 3) (value) B 3 644 4 856 856 - 644 = 212 (B) Why does one more module of FEATURED use 212 (B)? Are there some un...

Jump to post
  • Sun May 06, 2012 9:07 pm
  • Replies 1
  • Views 164
php request and config

This piece of code is copied from ADMIN > featured.php. class ControllerModuleFeatured extends Controller { public function index() { ......... $this->data['modules'] = array(); if (isset($this->request->post['featured_module'])) { $this->data['modules'] = $this->request->post['featured_module']; } ...

Jump to post
  • Sun May 06, 2012 6:38 pm
  • Replies 7
  • Views 1554
Re: May I offer my menu to OC?

Hi straightlight,

Where is "market place"?
I can't find it.

Jump to post
  • Sun May 06, 2012 6:23 am
  • Replies 8
  • Views 618
May I offer my menu to OC?

I created a multiple-level menu for my OC, which is very nice. :laugh: :laugh: The menu doesn't require vqmod, is in pure CSS and very light - speed for 200 categories is in us (ms/1000) level, which includes loading database and writing menu <ul> structure. I am a top C++ programmer for data strate...

Jump to post
  • Sun May 06, 2012 1:46 am
  • Replies 8
  • Views 618
featured_module[0][status], featured_module[1][status]

In ADMIN > featured.tpl, I added a test line in foreach: <?php echo "featured_module[$module_row][status]"; ?> and get a set of info: featured_module[0][status] featured_module[1][status] ... each line above stands for name of a SELECT, I want to know where (files) the array is loaded from and saves...

Jump to post
  • Sun May 06, 2012 1:22 am
  • Replies 0
  • Views 90
Modify interface of ADMIN > Featured

Hi friends,

I want to modify interface for ADMIN CP > Featured.
I hope another way to input products.

I want to know file path (php or tpl) for the modification.

Thanks.


.

Jump to post
  • Sat May 05, 2012 7:27 pm
  • Replies 2
  • Views 199
Display [rating] on [featured]

How to display [rating] on [featured]?

I thing it is a setting based on code of featured.tpl, but I can't find. :drunk:

Thanks.


.

Jump to post
  • Fri May 04, 2012 12:07 am
  • Replies 1
  • Views 86
Change images on Featured

Hi friends,

I want to align image and texts to center and keep all product in same height for [Featured].
I need to know related tpl and/or php files for [Featured] and/or for a single product file.

Thanks.


.

Jump to post
  • Thu May 03, 2012 12:40 am
  • Replies 1
  • Views 181
display.js file

Hi friends, I heavily modified function display() in catalog/view/theme/default/template/product/category.tpl . I found the function is used by multiple files, so, I created a display.js file for all of them. From standard point of view, which folder is the best place to put display.js file? .

Jump to post
  • Wed May 02, 2012 5:23 pm
  • Replies 0
  • Views 122
Where to put this php file?

Hi friends,

I have a piece of php code, which is used in several tpl files.
From standard point of view of OC, where should I put the php file?

i.e.
product_news.php,
which is used by
catalog/view/theme/default/template/product/category.tpl etc.

Thanks.


.

Jump to post
  • Wed May 02, 2012 5:01 pm
  • Replies 0
  • Views 136

Search found 139 matches