olaoyesunday 0 Posted April 20, 2020 Report Share Posted April 20, 2020 1) Our header file is in the includes file. if a client want to enter keywords to each products created in goodies categories for example, Please, how can he includes the keywords for Google to rank his site high? or how can we make our product entry in admin panel to handle it similar to the screenshot I attached with this messages, it was done using Laravel. 2) how can we also add recently viewed items say 5 to our site too? Quote Link to post Share on other sites
Larry 429 Posted April 22, 2020 Report Share Posted April 22, 2020 1) You'd store the keywords in the database along with the product info. Then you'd retrieve the product details before including the header file, making those keywords available to the header file to put in a META tag. 2) You'd need to track the user's viewing history and then you can pull from there. So when a user views a product, that stores the product ID, user identifier, and timestamp in a table. When that same user identifier appears, you can pull the info from that table by date desc order. Quote Link to post Share on other sites
olaoyesunday 0 Posted April 24, 2020 Author Report Share Posted April 24, 2020 Dear Larry, thanks for the answers but can you just give me a sample code snippets for that number 1 above where you said " On 4/22/2020 at 7:36 PM, Larry said: Then you'd retrieve the product details before including the header file, making those keywords available to the header file to put in a META tag. " I love your way of writing codes than using frameworks Quote Link to post Share on other sites
Larry 429 Posted April 24, 2020 Report Share Posted April 24, 2020 Thanks for the nice words! As for #1, the code would be essentially the same as that creating the page titles (e.g., in browse.php and then header. html), just populating the META instead of the TITLE. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.