patronbutiken LiteCart Fan De Sweden Miembro desde abr. 2019 patronbutiken 28 nov. 2021 20:17 Hello, I need to change the links in the page that shows manufactures logotypes to the same link as shown in sidemenu (categorytree) but im running out of ideas how to fix that. Regards Peter
tim Founder De Sweden Miembro desde may. 2013 tim 28 nov. 2021 20:36 See this line https://github.com/litecart/litecart/blob/cc6e73ccf44413548f3151b00d98a969b095920a/public_html/pages/manufacturers.inc.php#L31
patronbutiken LiteCart Fan De Sweden Miembro desde abr. 2019 patronbutiken 28 nov. 2021 20:45 Not follow you here Tim. In box-manufacturer-logotypes.inc.php there's a line <a href="<?php echo htmlspecialchars($logotype['link']); ?>"><img src="<?php echo document::href_link(WS_DIR_APP . $logotype['image']['thumbnail']); ?>" alt="" title="<?php echo htmlspecialchars($logotype['title']); ?>" ></a> Thats the link i need to change to something like. <a href="<?php echo htmlspecialchars($category['link']); ?>"><img src="<?php echo document::href_link(WS_DIR_APP . $logotype['image']['thumbnail']); ?>" alt="" title="<?php echo htmlspecialchars($logotype['title']); ?>" ></a> As i understand the $category in an variable but it wont be recognized in the file meantioned above. Php is not my strongest (i more into asp) yea i know im oldschool ;-)
tim Founder De Sweden Miembro desde may. 2013 tim 29 nov. 2021 01:17 Oh my bad. I thought you meant the manufacturers page. Well this is the line that cooks the link: https://github.com/litecart/litecart/blob/cc6e73ccf44413548f3151b00d98a969b095920a/public_html/includes/boxes/box_manufacturer_logotypes.inc.php#L23 But to insert a category id you would have to know which one (if multiple categories).