Jump to content



burt

Member Since 09 Sep 2002
OFFLINE Last Active Today, 09:02
*****

#1755204 Amazon Juggernaut

Posted by burt on Yesterday, 17:48

In product_info, https://github.com/g...o.php#L192-L199 - what this does is create Microdata telling Google (and others) the average review value of the Product.  That data can be seen by Google et al, but not by shoppers (in the product_info page)...

 

Would be good to move that into a module, and allow the possibility of displaying it so that it can be seen by shoppers, using tep_draw_stars function...




#1755203 Also Purchased query performance problem

Posted by burt on Yesterday, 17:11

The only other solution I can think of would be to rewrite the code to run the query manually in the Admin and store the results in a new database table. The catalog side query would then pull the results from this new table, which would be a great deal faster. The downside is that you need to manually run the query periodically to refresh the new table. That and the new code that would have to be written to do this of course.

 

This (as a new P_I content module).  I moved the stock also_purchased into its own module a little while back, so it should (for anyone on latest edge or updating as I make changes, to (assuming someone makes such a module, I know we're all super-busy) to simply turn off the stock one, upload the new one, and turn it on...

 

Plus a dashboard module that pops up (say) every 50 new orders to remind shopowner to "press the button" to refresh the also_purchased.




#1755169 Product Attributes should be Required

Posted by burt on Yesterday, 10:03

@burt

 

by the browser...

 

Which is the more correct, and preferred option.  

Do it your way for your client if you wish, but it's not something I would do.




#1755109 Product Attributes should be Required

Posted by burt on 26 March 2017 - 11:40

@mattjt83

The solution I posted was a few years old, likely needs looking at again.

It uses the HTML5 "required" stuff which is the preferred solution.

IIRC the dropdowns in the product page have not yet been optimised into div based structure (has-feedback etc).

I'll put that onto the to-do list lol




#1755071 Product Attributes should be Required

Posted by burt on 25 March 2017 - 09:49

Or...

 

http://forums.oscomm...down-selection/




#1754955 Can you require two form email address fields to match in create account?

Posted by burt on 22 March 2017 - 12:30

"less than it should be" ??  What the .... LOL.

 

 

Do you really want to deal with people who do not know their own email address ?  




#1754862 Help - Upgrading contribution from 2.2 to BS

Posted by burt on 20 March 2017 - 10:19

You can put the css anywhere....it does not need to be in the head of a page. 




#1754861 Fail login, contact us, add to card

Posted by burt on 20 March 2017 - 10:17

Problems like this are almost always in one (or both) of these;

 

htaccess, incorrect or malformed URL writing

configure.php, incorrect or malformed paths

 

If you cannot solve it, and your business depends on your shop...get it fixed by a Pro.

Post at the Commercial Tickets area, instead of wasting so much time and desperation.  




#1754815 Can you require two form email address fields to match in create account?

Posted by burt on 18 March 2017 - 23:03

I made a HT module which allows shopowner to choose what he wants to do.  

 

Have a second email field (and check that both are the same)

OR

Have a message after the email is input (your email address is xx@yy.zz)

OR

Show a tickbox asking the customer if they inserted their email correctly (cannot submit form unless ticked)

 

It also validates the inputted email to see if the customer account already exists, if so asks them to login.

 

It's a self contained HT module, no need to make it complicated.




#1754612 Bootstrap 3 in 2.3.4 - Responsive from the Get Go

Posted by burt on 14 March 2017 - 16:35

Another call for testers, please!

 

Chome: good

Canary: good

Firefox: good

IE11:  good

Edge: good

Safari: list group does not work at all

 

All of the above on Win10.




#1754440 Devious Trick or Super Smart

Posted by burt on 09 March 2017 - 13:05

LOL.  It's just a hobby something I've been into for some years.  

I'm exploring the potential of turning it into a (small, small as in pocket money) ecomm business.

 

Edit:  I suppose it might be good for someone on the Team to actually sell stuff using osC ;)




#1754439 Converting options and images addon to BS

Posted by burt on 09 March 2017 - 13:02

for the cols, always remember 12.

 

Now if you want 2 columns;  12 / 2 = 6 - use 6.

 

Let us imagine you want 2 columns XS and SM, 3 columns MD, 4 columns LG

 

col-xs-6 (12/2)

col-md-4 (12/3)

col-lg-3 (12/4)

 

Notice no setting for SM col.  Why?  These settings bubble upwards, so the col-xs-6 (2 columns) means col-sm is automatically set to 6 (2 columns).




#1754431 new template...

Posted by burt on 09 March 2017 - 11:07

If it were not for Gary (Burt) this project would be dead and that is a greater shame

 

Not just me.  

 

The help of a small band of shopowners in testing and monetary.  

As well as a couple of developers in coding time and effort.

 

This is why it is called the Community Edition.  It is the communities effort that kept (and keeps) osC punching, even if staggering against the ropes...




#1754417 Open new window

Posted by burt on 08 March 2017 - 22:32

I believe that this is not possible as those arrays are used to create links;

foreach ($groups['apps'] as $app) {
echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';
}

and there is nothing there to tell it target=_blank
It would be a waste of time and effort to code it, so here is a javascript shortcut;

<script>
$(document).ready(function(){
  $('a[href*="centurion_update_qty.php"]').click(function(){
    window.open(this.href);
    return false;
  });
});
</script>
Core code change that into the bottom of admin/includes/template_bottom.php


#1754311 Converting options and images addon to BS

Posted by burt on 06 March 2017 - 17:07

The main problematic area is here (which is just awful):

$count=0;
								echo '<td class="main"><table><tr>';
                foreach ($products_options_array as $opti_array){
							    echo '<td><table cellspacing="1" cellpadding="0" border="0">';
							    if (OPTIONS_IMAGES_CLICK_ENLARGE == 'true') 
								    echo '<td align="center"><a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_OPTIONS_IMAGES_POPUP, 'oID=' . $opti_array['id']) .'\')">' . tep_image(DIR_WS_IMAGES . 'options/' . $opti_array['thumbnail'], $opti_array['text'], OPTIONS_IMAGES_WIDTH, OPTIONS_IMAGES_HEIGHT) . '</a></td></tr>';
								    else echo '<tr><td align="center">' . tep_image(DIR_WS_IMAGES . 'options/' . $opti_array['thumbnail'], $opti_array['text'], OPTIONS_IMAGES_WIDTH, OPTIONS_IMAGES_HEIGHT) . '</td></tr>';
							        echo '<tr><td class="main" align="center">' . $opti_array['text'] . '</td></tr>';
							      echo '<tr><td align="center"><input type="radio" name ="id[' . $products_options_name['products_options_id'] . ']" value="' . $opti_array['id'] . '" checked></td></tr></table></td>';

											$count++;
You can start by ripping out one of the nested tables, what a waste.

echo '<td class="main"><table><tr>';
foreach ($products_options_array as $opti_array){
  echo '<td><table cellspacing="1" cellpadding="0" border="0">';										$count++;
to

echo '<td class="main">';
foreach ($products_options_array as $opti_array){
  echo '<table cellspacing="1" cellpadding="0" border="0">';
AND the ending of that table (which I think is this line, what a cluster---- of code whoever wrote this needs a punch in the balls);

echo '<tr><td align="center"><input type="radio" name ="id[' . $products_options_name['products_options_id'] . ']" value="' . $opti_array['id'] . '" checked></td></tr></table></td>';
to

echo '<tr><td align="center"><input type="radio" name ="id[' . $products_options_name['products_options_id'] . ']" value="' . $opti_array['id'] . '" checked></td>';