Jump to content

traylor23

Member
  • Posts

    104
  • Joined

  • Last visited

Posts posted by traylor23

  1. 1 hour ago, Dirty Butter said:

    I was making an assumption that multiple team names could be input on each of the other Codes lines, but only show if there were more than one team on that particular card. Of course I have no idea how complicated that would make Search!

    Since I don't foresee this being a clickable, aggregate linking mechanism, I could just add the 2nd/3rd team to the same field, i.e. Chicago Cubs - Atlanta Braves 

  2. 2 hours ago, Dirty Butter said:

    I just used upc as an example as it was first in the list in admin. We don't have to provide a upc code, because everything we sell is used. But don't you provide UPC codes?

    Don't make the change to Team in definitions.xml. Your change will be lost on upgrade. Find the Language section in admin, click on your flag, and look in Category. You can change it there and it will survive upgrading.

    Ahh...good point. I'll edit there as well.  I actually don't use UPC codes because baseball cards aren't sold individually at the retail store level.

    30 minutes ago, bsmither said:

    Would you be willing to experiment using my project?

    The project makes a change to the content.search.php (Advanced Search) template, and uses two code snippets. And possibly a minor change to the Category class file if necessary enhancements didn't make it into CC612.

    Of course I would, Brian! Just let me know!

  3. 4 minutes ago, Dirty Butter said:

    MY code to show upc is different than what I suggested to you, as Foundation is coded differently than Kurouto. So you still need to test it with your Kurouto skin.

    It worked fine as far as that side of things. Here is a screenshot after I changed the definitions.xml to reflect the new term.

    success.jpg

  4. 50 minutes ago, bsandall said:

    Allowing multiple teams for a single product is a more complicated question.

    If you just want to allow users to search for said products using either of those team names, all you have to do is include them in the product description.

    If you want to allow admins to filter products by those team names via the admin search bar, you're going to have to modify the search code to either:

    • Include the product description in the search (assuming you added the team names to the description)
    • OR include the manufacturer(s) column in the search

    Choosing the second option introduces further complications, as by default CubeCart only supports one manufacturer per product; you'd probably need to make an additional table for the product:manufacturer associations in a one-to-many relationship, and then query that in your search as well as modify the admin product interface to allow setting multiple manufacturers.

    If you are or have at your disposal a competent developer, the latter changes could be made in perhaps a few hours, more or less depending on how complicated it actually turns out to be.

     

    22 minutes ago, bsandall said:

    By that do you mean add an additional column that has all the properties (e.g. searchability) of the original Product Code field? Sure, that's possible, but it boils down to the same amount of work as I was describing above - you still need to add the column, ability to edit it in the admin product panel, and modify all of the search code to include it.

    Besides, how will adding that one additional column help your requirement for multiple team associations?

    In other words, sure you can do it, but it will be just as much work as and less effective than creating a table for multiple associations.

    Yes....Does the "It works in my mind" reason become a sound theory?

    6 minutes ago, Dirty Butter said:

    Getting the additional Codes to show on the store front shouldn't be too difficult. What skin do you use? What version CC are you on?

    Kurouto and 6.1.12

  5. 2 hours ago, Dirty Butter said:

    Do you already make use of ALL the Miscellaneous Codes on the Product listing? It seems like it should be possible to use one of those, rename it, and edit the storefront code to display it where you want it.

    I did try that, but they do not show up on my product pages. Is there a way to make those codes display there. Renaming one of those, and having it show up would be the easier route, I think. Good suggestion!

    7 minutes ago, bsmither said:

    I am approaching this as wanting to associate a category to the product, then showing the category name.

    I have to ask, How many team names will be needed? Will this get out of hand?

    Discerning the name of the category would be easy enough. That is, if an item has a main category and also three associated categories, there would be the need to pick which associated category is to be displayed. (Answer: team categories would have it's parent category named "Team Name".)

    You would then end up with a spot in the Category Navigation menu for "Team Name" (there's your link).

    I'd rather not do it relative to another category. I've though of that, and I didn't like the process all that much (multiple categories for every item).  As far as number of teams, it would literally be ALL professional sports teams, so probably > 120.

  6. Hey Brian,

      Basically what I am trying to do is to have a field in my admin, when I'm adding a product, similar to the product code box, where I can input a team name, and it show up underneath the product code on the storefront side on the product pages, like this:

    Product Code: 89UDKGJ1RC

    Team Name: Seattle Mariners

    Also, it'd be nice if either the team name was a hyperlink to an aggregate page of every item under that team name, or searchable so that I could make one myself.

     

     

     

  7. Hey All,

       I have a baseball card site, ballcardz.com, and I'd like to add a searchable field in the admin, similar to the Product Code field, that I could enter a team name into, and it would show up in the product description right below the product code text. Anyone know what I need to do to accomplish this? Is there a 3rd party solution? I have searched as hard as I could before asking. Thanks in advance!

  8. The whole stupid time, this was caused by the permissions on my /files directory having 775 permissions, instead of 755.  Fixed that and now everything works flawlessly...silly Cubecart and my host.  Thank you so very much for your time, Brian.  Wish there were some way that ALL of us could repay you!

  9. ugh...no..lol....been messing with cubecart for 5 years now and feel like a total newb at times.  Thanks, Brian...I'll try it.


    Brian, just deleted the file, cleared cache from the maintenance tab (all selections checked), retried printing invoice and got the same error...generated the same URL for that order.

  10. Please delete the code in post #14. I don't need to see that file, and I prefer you email the file I asked to see.

    The code in post #14 is not from:

    /admin/skins/default/templates/orders.print.php

     

    However, if what you posted is from that file, then you need to restore /admin/skins/default/templates/orders.print.php from a good copy.

    Also, using the FTP utility, let us know if the permissions to /files/print.01b4adf4d73e8c806311d6cd01af4f97.php are correct.

    Working on getting a good copy of /orders.print.php

    also, permissions on print file is 644

  11. Ok...my bad, Brian...I didn't have the */ at the end.  Oops...ok...so now it's fixed...

    After clicking the printer icon on top of the specific order page (in this case, order #150103-122605-5001), which generates this link:

    /admin.php?_g=orders&node=index&print[]=150103-122605-5001

    it generates this error message from this URL:

    /files/print.01b4adf4d73e8c806311d6cd01af4f97.php
     

    [an error occurred while processing this directive]

     

    Stumped...

    when checking the newest PHP errors:

     

    [03-Jan-2015 16:29:27 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156

    [03-Jan-2015 16:30:00 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
  12. That generated these errors, after showing a blank screen:
     

    [03-Jan-2015 16:07:30 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 16:07:36 America/Panama] PHP Warning:  Unterminated comment starting line 497 in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 497
    [03-Jan-2015 16:07:36 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 16:07:40 America/Panama] PHP Warning:  Unterminated comment starting line 497 in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 497
    [03-Jan-2015 16:07:40 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 16:07:51 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
  13. Latest PHP Error Log:

     

    [03-Jan-2015 12:41:19 America/Panama] PHP Notice:  cURL Error (0): Failed to connect to 2607:f8b0:4007:807::2004: Network is unreachable in /home1/ballcard/public_html/classes/request.class.php on line 255
    [03-Jan-2015 12:41:21 America/Panama] PHP Notice:  cURL Error (0): Failed to connect to 2607:f8b0:4007:807::2004: Network is unreachable in /home1/ballcard/public_html/classes/request.class.php on line 255
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/index.htm in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/Thumbs.db in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/index.htm in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/Thumbs.db in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:24 America/Panama] PHP Notice:  cURL Error (0): Failed to connect to 2607:f8b0:4007:803::1012: Network is unreachable in /home1/ballcard/public_html/classes/request.class.php on line 255
    [03-Jan-2015 12:41:34 America/Panama] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #2 is not an array in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1265
    [03-Jan-2015 12:41:34 America/Panama] PHP Warning:  natcasesort() expects parameter 1 to be array, null given in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1268
    [03-Jan-2015 12:41:34 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1269
    [03-Jan-2015 12:44:20 America/Panama] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #1 is not an array in /home1/ballcard/public_html/classes/order.class.php on line 494
    [03-Jan-2015 12:45:42 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 12:45:43 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 12:56:16 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:07:17 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:10:37 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:21:25 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:36:25 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:29 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:35 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:37 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:48 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:55 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:38:01 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:38:03 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:38:05 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:39:01 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:45:14 America/Panama] PHP Parse error:  syntax error, unexpected '$template_file' (T_VARIABLE) in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 14:52:41 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 15:08:19 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
  14. My entire, glorious PHP error log (about ready to start from scratch...ugh!):
     

    [03-Jan-2015 12:41:09 America/Panama] PHP Warning:  natcasesort() expects parameter 1 to be array, null given in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1268
    [03-Jan-2015 12:41:09 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1269
    [03-Jan-2015 12:41:19 America/Panama] PHP Notice:  cURL Error (0): Failed to connect to 2607:f8b0:4007:807::2004: Network is unreachable in /home1/ballcard/public_html/classes/request.class.php on line 255
    [03-Jan-2015 12:41:21 America/Panama] PHP Notice:  cURL Error (0): Failed to connect to 2607:f8b0:4007:807::2004: Network is unreachable in /home1/ballcard/public_html/classes/request.class.php on line 255
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/index.htm in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/Thumbs.db in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/index.htm in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:23 America/Panama] PHP Notice:  GD::gdLoadFile - Unknown file type: /home1/ballcard/public_html/images/source/Thumbs.db in /home1/ballcard/public_html/classes/gd.class.php on line 75
    [03-Jan-2015 12:41:24 America/Panama] PHP Notice:  cURL Error (0): Failed to connect to 2607:f8b0:4007:803::1012: Network is unreachable in /home1/ballcard/public_html/classes/request.class.php on line 255
    [03-Jan-2015 12:41:34 America/Panama] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #2 is not an array in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1265
    [03-Jan-2015 12:41:34 America/Panama] PHP Warning:  natcasesort() expects parameter 1 to be array, null given in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1268
    [03-Jan-2015 12:41:34 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/products.index.inc.php on line 1269
    [03-Jan-2015 12:44:20 America/Panama] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #1 is not an array in /home1/ballcard/public_html/classes/order.class.php on line 494
    [03-Jan-2015 12:45:42 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 12:45:43 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 12:56:16 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:07:17 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:10:37 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:21:25 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:36:25 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:29 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:35 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:37 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:48 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:36:55 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:38:01 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:38:03 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:38:05 America/Panama] PHP Parse error:  syntax error, unexpected end of file in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
    [03-Jan-2015 13:39:01 America/Panama] PHP Warning:  Invalid argument supplied for foreach() in /home1/ballcard/public_html/admin/sources/dashboard.index.inc.php on line 156
    [03-Jan-2015 13:45:14 America/Panama] PHP Parse error:  syntax error, unexpected '$template_file' (T_VARIABLE) in /home1/ballcard/public_html/admin/sources/orders.index.inc.php on line 657
×
×
  • Create New...