Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Seif
    Member
    Post count: 6

    I have solved my problem. This did the trick:

    			$downloads = $product->get_files();
    			$dlcount = 0;
    			foreach( $downloads as $key => $each_download ) 
    			{
    				if ($dlcount == 0) echo '<div class="title-wrap"><h3 class="spb-heading" style="text-transform: uppercase;"><span>Download</span><h3></div>';
    				echo '   <a style="margin-left: 10px;" href="'.$each_download["file"].'" target="_blank">'.$each_download["name"].'</a><br>';
    				$dlcount++;
    			}
    			if ($dlcount > 0)
    				echo '<div style="padding-bottom: 50px;"></div>';

    Thank you for your help!

    Seif
    Member
    Post count: 6

    Thank you very much for your replies!

    @Rui Guerreiro: I appreciate your help, however I was talking about the single product’s page.


    @David
    Martin: I appreciate your support.
    Could someone help me to find the way to get the download link of the specified product? I am trying to find my way through WordPress, and my personal method would be to execute a SQL query to fetch the download link(which I suppose is categorized as a wp_post entry). However, I know there’s a better and more secure way by using hooks and whatnot.

    Thank you in advance.

    in reply to: Raw PHP in Swift Page Builder #327077
    Seif
    Member
    Post count: 6

    Thank you for taking your time to reply. I have used the suggested plugin, and unfortunately it did not solve my issue. I noticed that by escalating the column size, the pictures get smaller(which is a great first step). However they’re still not the same size. I understand that the images themselves are not equal dimensions, but I was hoping that they would automatically resize to the same dimensions in sections such as Products and Clients. I have attached an example of my problem to this post.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Clients section does not display client image #326802
    Seif
    Member
    Post count: 6

    Thank you for your reply, the problem had nothing to do with the theme but with file paths.

    in reply to: Clients section does not display client image #326479
    Seif
    Member
    Post count: 6

    It would be great to have help on this. At this point, all I need to know is where is the file location(s) for the clients category so I can edit out the part in the code that does this upon adding new clients.

Viewing 5 posts - 1 through 5 (of 5 total)