Jump to content
Latest News: (loading..)

brian_cee

Members
  • Content count

    51
  • Joined

  • Last visited

  1. I don't currently use Header Tags SEO, but if there's an option in that to use product titles in the breadcrumb, I guess I will. I quoted Jack's signature because I thought you were differentiating between version of the Ultimate SEO urls, now I see that you were referring to the difference between Header Tags SEO and Ultimate SEO urls..... my fault completely, as I'm so lost I thought the breadcrumb override thing was part of the Ultimate SEO addon installation.....
  2. Sorry, but if you look in Jack_mcs' signature, it says: Most Important: Header Tags SEO - Ultimate SEO V 2.2d and when I click the link for Ultimate SEO V 2.2d, it takes me to this very thread. So I assumed versions 2.2 and 2.1 were similar enough to talk about here, since he created that link. But OK, if you say so, I'll try to find a better thread tomorrow, it's too late here for more of this tonight. But, by the way, I set everything up as you said, I could show screenshots, but not here, I guess.
  3. Has anyone found a fix for the SEO Breadcrumb Override problem in 2.3.4BS? I have done everything I can think of to fiddle with code that I don't understand to try and make the product name show up in the breadcrumb instead of a big ZERO (since I don't have model numbers.) I've tried to mess with includes/application_top to call up either product_name from the PRODUCTS_DESCRIPTIONS table, or products_id from the products table, I've done file comparisons with OSC 2.2 application_top files that worked, but don't want to just paste it over newer code as I'm not sure what problems it might cause. So, I hope someone out there knows the fix and would like to share. (I found the fix below from @raiwa from a thread that's archived from a couple years ago, but it didn't help.) ----------------------------------------------------------------------------- If your version is newer check if you have this option in: Admin => Modules => Header Tags => Product Title => SEO Breadcrumb Override? and set it to "true" Then you need to do a small fix in includes/application_top.php: Find: $model_query = tep_db_query("select coalesce(NULLIF(pd.products_seo_title, ''), p.products_model) as products_model from products p, products_description pd where p.products_id = '" . (int)$_GET['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); and change to: $model_query = tep_db_query("select coalesce(NULLIF(pd.products_seo_title, ''), pd.products_name) as products_model from products p, products_description pd where p.products_id = '" . (int)$_GET['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); Without this change, the model is still used if the SEO Product Title is left blank. It seems this is a small bug, please confirm.
  4. State Selector for BS

    And on page one of this thread, @raiwa told someone else if they only ship to the store country, this addon can be uninstalled and just code on one page (create_account or, in my case, account_pwa) can be changed. When I do that, the state field has what looks like a drop down arrow, as if you might be able to see states drop down, but the arrow produces no results when clicked. Any ideas appreciated.
  5. State Selector for BS

    Hey, I recently started a fresh install of the store and ran the update scripts on the old OS2.2 database so it works with 2.3.4bs.....Now I'm re-adding the addons I've tested, and everything is going good except this state selector......I followed all of the install directions, and there are no errors, and the default country is auto-selected and everything, but there is no state dropdown, it's still just a field that has to be typed in, which I don't understand. I uninstalled and reverted back to backed up files, did it all again, same result....I have a zone table in the db and it is populated with states, is there something obvious I might have messed up that would cause the dropdown function to not work?
  6. Thanks again..........
  7. I have this working perfectly on the new 2.3.4BS shop, but I'm now trying to import data from my old 2.2 shop, and I'm hitting a wall on the reviews....The reviews table has differently named columns slightly, not sure if that's the problem, but I can create and populate reviews table and reviews_descriptions table, everything looks OK, and in admin I can add a review, etc...but if I try to look at a review I've added from 2.2, I get errors: Warning: array_merge(): Argument #1 is not an array in ....../admin/reviews.php on line 285 (and 286) here are those lines: $review_info = array_merge($reviews_text, $reviews_average, $products_name); $rInfo_array = array_merge($reviews, $review_info, $products_image); and: Warning: reset() expects parameter 1 to be array, null given in.... /admin/includes/classes/object_info.php on line 21(and 22) here are those lines: function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { At first glance, does anyone think I made an obvious mistake?
  8. Thanks, I got the attribute copier to work, only a couple obvious changes in the instructions needed to make it work for 2.3.4BS, but now that I looked into the Ajax thing you mentioned, I might try that, too. If I understand it correctly, I can tick a box on or off when adding the product in admin.....but also, like if I run out of a particular size of a particular hoodie design, for example, I can just go into that product's page in admin and uncheck that particular size until I get it back in stock? If so, that is easier/faster....I'll look into it, thanks.....
  9. The old Attributes Copier through Admin contribution for OSC 2.2 was a life saver years ago, especially for a t-shirt site. Each design came in multiple shirt styles, ink colors and sizes S-5X, used to take forever to add new stuff....I tried searching to see if anyone had updated this to make it work for OSC 2.3.4BS and couldn't find anything. Before tinkering with it myself, if anyone knows of an existing addon that I couldn't find, please let me know. Otherwise, if I can get it to work, I'll post it here in case anyone else can use it.
  10. State Selector for BS

    Perfection, thanks.
  11. State Selector for BS

    And here are before and after screenshots, after replacing that code:
  12. State Selector for BS

    Followup: Since those files aren't identical, I replace this in my version of PWA's account_pwa.php: <?php if (ACCOUNT_STATE == 'true') { ?> <div class="form-group has-feedback"> <label for="inputState" class="control-label col-sm-3"><?php echo ENTRY_STATE; ?></label> <div class="col-sm-9"> <?php if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array, 0, 'id="inputState" aria-describedby="atState"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span id="atState" class="help-block">' . ENTRY_STATE_TEXT . '</span>'; } else { echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"'); echo FORM_REQUIRED_INPUT; } } else { echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"'); echo FORM_REQUIRED_INPUT; } ?> </div> </div> <?php } ?> <div class="form-group has-feedback"> <label for="inputCountry" class="control-label col-sm-3"><?php echo ENTRY_COUNTRY; ?></label> <div class="col-sm-9"> <?php echo tep_get_country_list('country', NULL, 'required aria-required="true" aria-describedby="atCountry" id="inputCountry"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_COUNTRY_TEXT)) echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>'; ?> </div> </div> I REPLACE THIS WITH: <div class="form-group has-feedback"> <label for="inputCountry" class="control-label col-sm-3"><?php echo ENTRY_COUNTRY; ?></label> <div class="col-sm-9"> <?php if ( !isset($country) && MODULE_HEADER_TAGS_GET_STATES_DEFAULT_COUNTRY == 'True' ) { $country = STORE_COUNTRY; } echo tep_get_country_list('country', $country, 'onChange="getState(this.value)" required aria-required="true" id="inputCountry"'); if (tep_not_null(ENTRY_COUNTRY_TEXT)) echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>'; ?> </div> </div> <?php if (ACCOUNT_STATE == 'true') { ?> <div class="form-group has-feedback"> <label for="inputState" class="control-label col-sm-3"><?php echo ENTRY_STATE; ?></label> <div id="results" class="col-sm-9"> <?php $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zones_array = array(); $zones_array[0] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); $zones_query = tep_db_query("select zone_name from zones where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array, '', 'id="inputState"'); } else { echo tep_draw_input_field('state', NULL, 'id="inputState" class="form-control" placeholder="' . ENTRY_STATE . '"'); } if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span class="help-block">' . ENTRY_STATE_TEXT . '</span>'; ?> </div> </div> <?php } ?> </div>
  13. State Selector for BS

    Hey, I had done that and everything went smoothly, but afterwards I uninstalled that version of PWA and installed the newer one with the reviews function (PWA for BS 2.5R1).....then when I tried to ad the state selector changes to that version of account_pwa, it stripped away the left and right columns and put the best seller box underneath the address fields and stuff, on shop/account_pwa.php........... I tried comparing differences between the older version of account_pwa.php and the newer one, to see how I could make the install fit, but I can't figure it out. It's something in these instructions that breaks that page up when uploaded: 3. catalog/create_account.php (or account_pwa.php) FIND: <?php if (ACCOUNT_STATE == 'true') { ?> <div class="form-group has-feedback"> <label for="inputState" class="control-label col-sm-3"><?php echo ENTRY_STATE; ?></label> <div class="col-sm-9"> <?php if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array, 0, 'id="inputState" aria-describedby="atState"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span id="atState" class="help-block">' . ENTRY_STATE_TEXT . '</span>'; } else { echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"'); echo FORM_REQUIRED_INPUT; } } else { echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"'); echo FORM_REQUIRED_INPUT; } ?> </div> </div> <?php } ?> <div class="form-group has-feedback"> <label for="inputCountry" class="control-label col-sm-3"><?php echo ENTRY_COUNTRY; ?></label> <div class="col-sm-9"> <?php echo tep_get_country_list('country', NULL, 'required aria-required="true" aria-describedby="atCountry" id="inputCountry"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_COUNTRY_TEXT)) echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>'; ?> </div> </div> </div> REPLACE WITH: <div class="form-group has-feedback"> <label for="inputCountry" class="control-label col-sm-3"><?php echo ENTRY_COUNTRY; ?></label> <div class="col-sm-9"> <?php if ( !isset($country) && MODULE_HEADER_TAGS_GET_STATES_DEFAULT_COUNTRY == 'True' ) { $country = STORE_COUNTRY; } echo tep_get_country_list('country', $country, 'onChange="getState(this.value)" required aria-required="true" id="inputCountry"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_COUNTRY_TEXT)) echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>'; ?> </div> </div> <?php if (ACCOUNT_STATE == 'true') { ?> <div class="form-group has-feedback"> <label for="inputState" class="control-label col-sm-3"><?php echo ENTRY_STATE; ?></label> <div class="col-sm-9"> <?php $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zones_array = array(); $zones_array[0] = array('id' => '0', 'text' => PULL_DOWN_DEFAULT); $zones_query = tep_db_query("select zone_name from zones where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo '<span id="results">'; echo tep_draw_pull_down_menu('state', $zones_array, '', 'id="inputState"'); echo '</span>'; echo FORM_REQUIRED_INPUT; } else { echo '<span id="results">'; echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE . '"'); echo '</span>'; echo FORM_REQUIRED_INPUT; } if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span class="help-block">' . ENTRY_STATE_TEXT . '</span>'; ?> </div> </div> <?php } ?> </div> Is my issue related to this code, do you think, or did I go wrong elsewhere?
  14. Modular Shopping Cart

    Ah, OK, will do, thanks......
  15. Modular Shopping Cart

    I went ahead and just added the cart module and re-added the continue shopping button with it......The image on the button was still something like IMAGE_BUTTON_CONTINUE_SHOPPING so I added a define in english.php to have the text be CONTINUE SHOPPING, seems to work and look fine. Thanks again......
×